Editing a Data Model (CX)
What's on this page
About Editing a Data Model
Once you’ve created a data model, you may need to make edits to it. The edits covered on this support page include:
- Removing elements.
- Changing the fields you can map in your dataset.
- Managing labels.
If you want to map multiple sources together or join data, see Unions and Joins. For how to create or use a field group, see Field Groups (CX). For recoding values, see Recoding Data Model Fields.
Qtip: A. “node” refers to any element in a data model. This includes sources, unions, joins, and output datasets.
Editing a Data Model
Qtip: If your data model has been added to a dashboard, you can also edit it right from that dashboard. Open your dashboard settings, go to Dashboard data, and click the name of the dataset you want to edit. Often, there may be only 1 dataset in your dashboard.
Removing Nodes from the Data Model
Warning: Be careful when editing a data model that’s currently in use. If you delete a node (union, join, or source), then add the same node back, it’s treated as a brand new, separate node. That means you will have to readjust any widgets that use fields that were deleted and re-added.
To remove a source, a union, or a join, click the X in the upper-right.
Selecting Which Fields To Include from Sources
If you click a source and go to Schema, you can select and deselect the fields included in your dataset.
Qtip: The steps described here control the fields you can possibly map in your dataset. To add a new field, see Unions.
Adding a New Field
There are many reasons you might need to add a new field to your data model. For example, if you added a new field (or column) of data to your source after you published your data model, or if you changed your mind about a field you didn’t map earlier.
You can add a new field to many nodes, including:
- Data sources
- Unions
- Joins
However, adding a field to one node will not automatically carry it into any other connecting nodes. You must add the same field to its source and to each following node to include it in your dataset output.
Example: You added an Education field to your CSAT 2019 survey. To get Education into your final dataset, you need to first add it to your CSAT 2019 source, then in Union 2 and the Join. The field doesn’t need to be added to Union 1 because it isn’t connected to the CSAT 2019 survey.
Qtip: Rather than mapping a dashboard field to a source field, you can also map to a static value that will be the same for every row of data in the data source. First, click Create a custom field.
Add your static text in the window that opens.
To learn more, see Static Text.
Deleting Fields
Attention: Make sure the field is deleted from every node in the data model. Deleting the field from the source removes the data from the dataset, but it will leave an empty field in any unions or joins that use that source.
Editing Dataset Fields
There are many changes you can make to your dataset fields. Some edits are made to the source, some are made in unions, and others are made to the output dataset.
To edit a source, union, join, or output, first click on it.
Editing source fields
Editing unions
See Unions (CX) for specific steps on:
- Mapping the same field from multiple sources together.
- Separating fields.
Editing joins
With joins, you can merge data rows based on a common field, such as a unique ID. See Joins (CX) for more details.
Editing output datasets
Data Model Drafts
A draft is created whenever you edit an existing data model and leave the page without publishing. Your data model will have a “Draft” label added to the top of the page.
You can click Reset Current Draft to delete the current draft and revert the model to the last published version.
If you’d like to save your changes instead, click Publish. Publishing applies the data model to the underlying data, so if a draft exists, then the model used in your dashboard may be outdated until you publish changes.
FAQs
How many columns / unique fields can my dataset have?
How many columns / unique fields can my dataset have?
Is there a limit to the number of data sources you can add in each dataset?
Is there a limit to the number of data sources you can add in each dataset?
How many dashboard datasets can I create?
How many dashboard datasets can I create?
How many times can I use the same data source in a dashboard dataset?
How many times can I use the same data source in a dashboard dataset?
Are changes to data models reflected immediately in dashboards?
Are changes to data models reflected immediately in dashboards?
If you have multiple sources of the same type in your dataset (such as tickets and surveys), we generally recommend creating unions before you create joins.
What’s the difference between data sources and datasets?
What’s the difference between data sources and datasets?
Learn more about these key terms.
That's great! Thank you for your feedback!
Thank you for your feedback!