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

Bucketing Variable Creation


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 Bucketing Variable Creation

Let’s say you internationally distribute a survey asking what country each respondent lives in. Halfway through data collection, you realize you don’t just want to do analyses on the countries, but the whole continents. It’s too late to add a new question or an embedded data element that captures this information, so how do you group the countries into continents without invalidating your data?

Bucketing creates custom variables that combine values from previously existing variables into new groups. Values assigned with a bucketed variable will be applied to both collected and future data, making it an alternative to embedded data in situations where you need a variable to be added retroactively. Once created, bucketed variables can be used in the Data and Weighting sections of the Data & Analysis tab and in the Results section of the Reports tab. They can also be exported with your dataset or be retrieved by API if you use Create Response Export, Get Response Export Progress, and Get Response Export File calls.

Need to make changes to an existing bucketed variable? See our Editing Custom Variables page.

Creating a Variable with Bucketing

Qtip: The selected field must have 200 or fewer unique values. If the field exceeds this amount, you will see the message “Too Many Source Values” in the Source Values box.
  1. Go to the Data & Analysis tab.
    Field Editor button in top-right corner of Data & Analysis tab
  2. Select Field Editor.
  3. Select Create Field.
    create field button within field editor
  4. Select Bucketing at the top.
    Bucketing option selected in top-right corner of Create Variable menu
  5. Name your variable.
  6. Click Select Field to choose the variable you are going to bucket. You can choose from all available survey questions, survey metadata, contact fields, or embedded data.
    Qtip: Bucketing cannot be used to combine different variables; it is only for combining different values of one variable. If you’d like to create a variable based off of multiple questions, our Manual Variable Creation feature might be right for you.
    Qtip: You can use bucketing with numeric values as long as your embedded data field type is set to Number. If your embedded data stays as a text set when it’s meant to be numeric, you’ll receive an error that there are too many values to bucket.
  7. Name the groups your values will be sorted into. If your variable requires more groups, you can add more by clicking Add Group below the existing ones, as seen below.
    Values on the left are dragged over into bucket categories on the right
    Add Group option beneath bottom-most bucket category
  8. Drag fields from the Source Values box to the groups on the right. Note that you do not need to have every field sorted into a group.
  9. Click Create Variable.
    Qtip: Whenever a value isn’t sorted into a group, it is marked Uncategorized within your new bucketed variable.
  10. Click Review and Publish to save your changes.
    clicking "review and publish"
  11. Click Publish your Changes.
    publish changes button

    Qtip: Click Data Table to return to your data table.
Attention: Bucketing is compatible with multiple answer questions, but be careful. Only one group can be assigned per response. For example, if you have allow respondents to choose multiple countries where they have lived, the bucketed variable discussed above would only assign them the continent of their first selected answer.

Projects Where You Can Create These Custom Fields

Data & Analysis is available in many different types of projects. The options described on this page are available in:

While the functionality is technically available, we do not recommend using these custom fields with other types of Employee Experience projects. See Creating New Fields (EX) for more details.

Qtip: While other areas of the platform (like dashboards, Stats iQ, and directories), may also allow you to create new fields, this support page is solely focused on how to create new custom fields in Data & Analysis. For steps on creating other kinds of fields across the XM platform, try narrowing your support site search.

FAQs