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
- Go to the Data & Analysis tab.
- Click Tools on the right side.
- Select Create New Field.
Qtip: Bucketing does not erase or otherwise affect the variable it is based on. Instead, it creates a new variable in addition to the original.
- Select Bucketing at the top.
- Name your variable.
- In the Source Values box, 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 together; 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.
- Name the groups your values will be sorted into. If your variable requires more groups, you can add more by clicking New Group below the existing ones, as seen below.
- 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.
- Click Create Variable.
Qtip: Whenever a value isn’t sorted into a group, it is marked Uncategorized within your new bucketed variable.