Recoding Data Model Fields (CX)
What's on this page
About Recoding Data Model Fields
Recoding allows you to change how data looks or behaves in CX Dashboards – for example, by conveniently shortening how choices are labeled, and changing text to numbers. You can only recode text set, multi-answer text set, and number set data.
This page covers how fields are recoded in the data modeler. For recoding dashboard fields in the older data mapper, see Recoding Dashboard Fields.
Source Recodes and Dashboard Recodes
Qtip: Recoding a source, such as a survey, will cause a data model dataset to reindex.
In a data model dataset, source recodes are brought in. This means that if you recode a survey, then bring that survey into your data model, your survey recodes exist. When you recode the dashboard dataset, you are making changes to already recoded data.
Example: We have a survey with a satisfaction question with the following ratings and recodes:
- Very satisfied – 1
- Satisfied – 2
- Neither satisfied nor unsatisfied – 3
- Dissatisfied – 4
- Very dissatisfied – 5
In the survey, we edit the recodes as follows:
- Very satisfied – 5
- Satisfied – 4
- Neither satisfied nor unsatisfied – 3
- Dissatisfied – 2
- Very dissatisfied – 1
This second set of recode values is what we’ll see when we edit recode values in the dashboard. That also means that if we wanted to change “Very dissatisfied” to equal 0, we should recode the value of 1, not 5.
Qtip: In the data mapper, source recodes (e.g., survey recodes) do not affect dashboard recodes.
Opening the Recode Editor
You can only recode values at the source in a data model. These recode values are then carried through the model’s joins, unions, and output dataset.
The recode editor will vary based on the format of your field.
Recoding Fields
Qtip: When you’re mapping an open-ended field to a text set or number set, your recode editor will start out empty. Open-ended fields include sources such as text entry questions, a text entry field on a matrix table or another question type, embedded data fields, or a text from an Imported Data project.
You do not have to add options and recode values if you don’t want to. Data doesn’t have to be recoded to appear in the dashboard; the recode editor just allows you to format the way it will be labeled in your widgets.
For example, If you asked respondents to tell you what type of jewelry they have, they might give answers like “gold” or “silver.” By recoding values, you can align how similar options appear. See Cleaning Up Data.
Managing Delimiters
Qtip: This option only appears for multi-answer text sets.
When you’re mapping an open-ended field (such as a text entry question or an embedded data field) to a multi-answer text set, you have the option to define a delimiter. A delimiter determines the division between different answers entered into an open-ended field. For example, if you asked respondents to list the names of their children separated by commas, then the delimiter would be a comma.
Importing Recode Values
You can also import recode values into your mapped fields. This is useful if you have many values you’d like to recode, or if you’re recoding the same field across multiple data sources.
Qtip: A field can have a maximum of 5000 recode values.
Common Uses for the Recode Editor
One of the most common use cases for recoding values is to group similar choice options together. The recode editor can also be used to clean up data values.
While the following links go to the data mapper support page on recode values, the same functionality can be applied in the data modeler.
FAQs
Can I recode values in a union, join, or output?
Can I recode values in a union, join, or output?
Does editing recode values cause the dashboard to reindex?
Does editing recode values cause the dashboard to reindex?
- You recode a source (i.e., recode a survey) that is connected to a data model.
- You edit any dataset’s recodes directly (model or mapper).
Data is still accessible during reindexing. For more on what happens during a reindexing, see Saving Dashboard Data Edits.
That's great! Thank you for your feedback!
Thank you for your feedback!