Skip to main content
Loading...
Skip to article
  • Qualtrics Platform
    Qualtrics Platform
  • Customer Journey Optimizer
    Customer Journey Optimizer
  • XM Discover
    XM Discover
  • Qualtrics Social Connect
    Qualtrics Social Connect

Derived Attributes (Designer)


Was this helpful?


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The feedback you submit here is used only to help improve this page.

That’s great! Thank you for your feedback!

Thank you for your feedback!


About Derived Attributes

Derived attributes are attributes that are created based on your existing attributes or classification results. These derived attributes can be used in dashboards, filters, and category rules in the same way that standard attributes can.

A regular attribute can be mapped to any number of derived attributes. You cannot use a derived attribute to create another derived attribute.

Types of Derived Attributes

There are 4 different types of derived attributes you can create. The field type of the existing attribute determines what kinds of derived attributes you can use.

  • Dimensional lookup: Available for text and numeric attributes. Allows you to map standard attributes to a different related attribute that’s based on the standard attribute. For example, a regular “city” attribute may be rolled up into a derived “region” attribute. See Dimensional Lookup Attributes for more information.
  • Range rollup: Available for numeric and date attributes. Allows you to map ranges of standard attributes to a different related attribute range. For example, a regular “age” attribute may be rolled up into a derived “age group” attribute. See Range Rollup Attributes for more information.
  • Satisfaction score: Available for numeric attributes only. Allows you to view the percentage of customers who are loyal to a company’s products or services based on their answers to satisfaction-related questions. See Satisfaction Score Attributes for more information.
  • Category derived attribute (CDA): This attribute is created from your category models. Allows you to turn classification results into structured data by deriving attributes (such as product being discussed or the author’s gender) from any unstructured text. See Category Derived Attributes for more information.

Dimensional Lookup Attributes

This section covers how to create a dimensional lookup attribute.

Preparing a Lookup Data File

Before you can create your dimensional lookup attribute in XM Discover, you must first prepare a data file that contains your lookup data. This can be done by creating a spreadsheet with your data that follows the format below:

  • Column A should contain your standard attribute values. This should be the attribute you want to use to create your derived attribute.
  • Columns B, C, and so on should contain your corresponding derived attribute values. You can include multiple derived attributes in your file as long as they’re based on the same source attribute.
  • Save your file as an XLS or XLSX format.

Additionally, please be aware of the following when preparing your file:

  • If your file contains empty values, these will appear in XM Discover as “undefined.”
  • You can include attribute values that are not yet present in your dataset but you anticipate will appear later. When these values are uploaded to your project, they will be automatically mapped according to your lookup data file.
Example: This example shows a data file for creating “country” and “state” derived attributes based on the “city” standard attribute.
an example dimensional lookup data file

Creating the Dimensional Lookup Attribute

After you’ve prepared your lookup data file, you can create your dimensional lookup attribute in XM Discover.

  1. Navigate to the Attributes tab.
    clicking add derived attribute in the attributes tab
  2. Click the Add Derived Attribute button next to the attribute you want to use as the source for your derived attribute.
  3. Enter your derived attributes’s properties. See Creating an Attribute for an explanation of each option in this window.
    configuring the attribute

    • Most of these options can be set to whatever you’d like. However, make sure that the Type is set to Dimensional Lookup.
  4. Click Save.
  5. On the Attributes page, select the Edit option next to your source attribute. This is the same attribute you selected in step 2.
    clicking edit
  6. Click Import Lookup Data.
    clicking import lookup data
  7. Click Choose File and select the file saved on your computer.
    clicking choose file
  8. Click Upload.
    uploading a file and previewing the data
  9. Your data will appear at the bottom of the window. Double check everything looks correct before continuing.
    Qtip: If you need to make any changes, edit your data lookup file and then reupload it by clicking Choose File and then Upload.
  10. Click Next.
  11. Use the dropdown menus to map your file columns to derived attributes in XM Discover.
    mapping data columns to attributes

    Qtip: When importing lookup data for several derived attributes at once, you can leave a mapping blank to clear the derived attribute’s mapping. This will record the values as “undefined” as if the row values were blank in the lookup data file. This will not replace existing lookups unless the “Replace lookups” option is selected later in the import process.
  12. Click Next.
  13. If you already contain lookups for these attributes, choose how you want to handle the existing mapping:
    • Reject duplicates and process only new lookups: New lookups are added while existing lookups are ignored. New values do not replace existing ones and empty values will not remove existing values.
    • Replace lookups: All previously uploaded mappings are deleted before the new ones are processed. Use this option if you want your lookups to look exactly like your uploaded file. If your file is missing lookups that were previously available, these lookups will be removed.
    • Update values for existing lookups: Both new and existing lookups are processed. For existing lookups, new values from the upload replace existing ones while empty values do not replace existing ones.
      choosing settings for existing mappings
  14. Click Process Data.
Qtip: You can monitor the progress of this job by looking at the Import Lookup Data dataflow in the Dataflows tab.

Once your dimensional lookup is processed, you can apply the derived attribute to your reports.

Range Rollup Attributes

This section covers how to create range rollup attributes. There are 2 different types of range rollup attributes, depending on your source attribute type:

  • Custom Range: If your source attribute is a numeric field, you can create different range buckets categories.
  • Custom Period: If your source attribute is a date field, you can create different date range categories.

To create your range rollup attribute:

  1. Navigate to the Attributes tab.
    clicking add derived attribute in the attributes tab
  2. Click Add Derived Attribute next to the attribute you want to use as your source attribute.
  3. Add your attribute properties. See Creating a Custom Attribute for more information about each option in this window.
    • Most of these options can be set to whatever you’d like. However, make sure that the Type is set to Range Rollup.
      creating a range rollup attribute
  4. Define your range rollup categories. The exact steps here will differ depending on if you’re creating a custom range or custom period. See the subsections below for instructions on each type.
  5. When finished, click Save.

After you create your range rollup attribute, you can apply it to your reports.

Custom Ranges

Follow these instructions to create your custom ranges for derived attributes based on numeric fields.

  1. In the Min (>=) field, enter the lower limit for this range. Note that this value will be included in the range.
    creating a custom range
  2. In the Max (<) field, enter the maximum limit for this range. Note that this value will not be included in the range.
    Qtip: Your maximum value will automatically become the minimum value for the next range in your attribute.
  3. In the Label field, enter a display name for this custom range.
  4. To add additional ranges, click the plus sign ( + ) next to an existing range. This will add the new range below the existing one.
    Qtip: When adding multiple ranges, your ranges cannot overlap or have gaps in between them. The maximum for one range will automatically become the minimum of the range that follows it.
  5. To remove a time range, click the X next to the range.

Custom Periods

Follow these instructions to create your custom periods for derived attributes based on date fields.

  1. In the From field, enter the date for when the custom period should begin. You can click the calendar icon to open a calendar to pick a date.
    creating a custom period
  2. In the To field, enter the date for when the custom period should end. You can click the calendar icon to open a calendar to pick a date.
  3. In the Label field, enter a display name for this custom time period.
  4. To add additional periods, click the plus sign ( + ) next to an existing period. This will add the new period below the existing one.
    Qtip: When adding multiple periods, your periods cannot overlap. However, there can be gaps between periods.
  5. To remove a time period, click the X next to the period.

Satisfaction Score Attributes

You can create a satisfaction score attribute to find the percentage of loyal customers. Satisfaction scores can be created based on any numeric attribute.

The satisfaction score is calculated based on the customer’s response to a survey. For example, a customer may be asked to rate a company’s service on a scale of 1 to 5. You can then calculate a satisfaction score based on this metric. You can also combine multiple metrics together in one satisfaction score calculation.

Satisfaction score is calculated using the following formula:

Satisfaction score = ([Number of Most Loyal] – [Number of Least Loyal]) / Total * 100

Qtip: The Total in this calculation can differ depending if you have the Include Null Values in Satisfaction Score Calculation option enabled.

Creating a Satisfaction Score Attribute

Follow the instructions below to create a satisfaction score attribute:

  1. Navigate to the Attributes tab.
    clicking add derived attribute in the attributes tab
  2. Click Add Derived Attribute next to the attribute you want to use as your source attribute.
  3. Add your attribute properties. See Creating a Custom Attribute for more information about each option in this window.
    • Most of these settings can be whatever you’d like. However, make sure to select Satisfaction Score as the attribute type.
    • When enabled, the Include Null Values in Satisfaction Score Calculation includes responses that did not answer the question in the total number of responses. Enabling or disabling this option will affect how your satisfaction score is calculated.
    • Do not adjust the Parent field as this is the source attribute that is used for the calculation. It should have the same name as the attribute you selected in step 2.
  4. Define your satisfaction score ranges. Type numbers into the following boxes for each row:
    • Most Loyal: Enter the minimum and maximum score for a customer to be considered loyal. On a 5 point scale, this is usually 4 and 5.
    • Least Loyal: Enter the minimum and maximum score for a customer to be considered not loyal. On a 5 point scale, this is usually 1 and 2.
    • Neutral: The minimum and maximum score for a customer to be considered neutral (neither loyal or not loyal). The ranges for a neutral score are automatically generated based on the ranges for Most and Least Loyal.
  5. Click Save.

After creating your attribute, make sure you apply it to your reports.

Satisfaction Scores Based on Multiple Attributes

If needed, you can calculate a satisfaction score based on several numeric attributes.

  1. Follow the instructions in the above subsection to create a satisfaction score attribute based on a single metric.
    clicking edit
  2. On the Attributes page, click Edit next to your newly created satisfaction score attribute.
  3. Click New.
    clicking new and choosing an attribute
  4. In the window that appears, choose the attribute you want to include in the calculation.
  5. Click OK.
  6. Define the ranges for this attribute. See the subsection above for more information about each range.
    defining ranges
  7. You can switch between the attributes used in your calculation by using the Parent dropdown menu.
  8. If you want to remove an attribute from your calculation, select the attribute and then click Delete.
  9. After adding all of your attributes to the calculation, click Save.

Category Derived Attributes

You can use your category models to create attributes. This allows you to derive attributes from any unstructured text, such as your product being discussed in a customer feedback survey.

Qtip: Category derived attributes are applied to the entire document. If you want to view insights on a sentence-level, then apply your category model to your document instead.
  1. Navigate to the Categorize tab of the project that contains the model you want to base attributes on.
    Navigate to the Categorize tab of the project that contains the model you want to base attributes on. Right click on your category model. You can create attributes based on the entire category model, or just 1 category in the model. Hover over Model Actions and select Derive Attribute Hierarchy.
  2. Right click on your category model. You can create attributes based on the entire category model, or just 1 category in the model.
  3. Hover over Model Actions and select Derive Attribute Hierarchy.
    Qtip: If an individual category in a model already has an attribute derived from it, you cannot derive an attribute based on the whole model and this option will be missing.
  4. Enter the display name for the attribute.
    naming the new attribute

    • If deriving attributes based on a whole model, you’ll need to add names for each level in the model instead. In the below example, there are 3 levels. The first level covers the type of service, which in this case is airline. The second level covers the country of service. The third level covers the individual airlines in each country.
      If deriving attributes based on a whole model, you’ll need to add names for each level in the model instead.
  5. Click Create.
  6. Any categories that are used to derive attributes will have an icon next to it indicating that it is used in attributes.
    Any categories that are used to derive attributes will have an icon next to it indicating that it is used in attributes.
Qtip: To remove an attribute based on a category model, right click on the model and select Derive Attribute in the Model Actions menu. In the window that appears, click Delete.

After creating your attribute, it will be applied to your data using the following logic:

  • Existing data will not have the attribute applied unless you run classifications for this category model.
  • New data will be tagged with the attribute when appropriate.
  • If you edit your category model, make sure you also edit the derived attribute name.
  • If you have multiple category derived attributes, documents may be tagged with multiple attributes. If a document does not match any values, then it will be tagged with “undefined.”

Applying Derived Attributes

After you create a dimensional lookup, range rollup, or satisfaction score attribute, you must process them before they’re available for you to use in reports.

Whenever there are unapplied mappings, you will see a red exclamation mark ( ! ) next to the     attribute name. Click Process Derived Attributes to apply your derived attributes. XM Discover will process all documents and apply the relevant attributes.clicking process derived attributes

Qtip: When new data is loaded into the project, derived attributes are automatically applied. You only need to process derived attributes if you want those attributes available in your existing data.