Changing a Model That Holds Data

A model keeps growing after its first load: a new column arrives in the export, a dataset is no longer needed, a label reads badly. You can change the model at any time on the Models tab, and the records already loaded keep answering while you do. This article says what each kind of change does to those records and to the dashboards built on them, which changes are refused because the loaded values would read wrongly, and how to update or remove the records themselves.

Every save is checked against the previous version of the model. A change that keeps the loaded data meaningful is accepted; one that would not is refused, the model stays as it was, and the message says what to do instead. All problems of one save are listed together, so you can fix them in one pass. The same rules apply to a model saved through the model definition.

At a glance

You want to… Accepted? Records already loaded Then
Change a Name, a description or a colour Yes Unchanged — only labels change —
Add a property Yes Have no value for it Load the data again with the new column
Add a dataset Yes — Load its data
Raise a measure's decimal places Yes Unchanged and exact —
Point a reference at another dataset Yes Matched against the new dataset's Ids Check for Unknown values
Change a Source Column Yes Unchanged Applies from the next load
Remove a property Yes Its values are no longer shown Fix the dashboards that used it
Remove a dataset together with every reference to it Yes Removed Fix the dashboards that used it
Change a property's ID or a dataset's ID Yes, as a removal plus an addition The new one starts empty Load the data again
Change the Id property or the Primary Time Property Yes Must be loaded again Re-ingest the dataset straight away
Change a property's type No — Add a new property
Lower a measure's decimal places No — Keep them, or add a new property
Change a Time property's granularity No — Keep it, or add a new property
Remove a dataset another dataset still refers to No — Remove the references in the same step

Changes that are always safe

Renaming what people see never touches the data. Change a property's or a dataset's Name, its Description, its Empty Value Label, its default aggregation or the colours of its values whenever you like: Explore, dashboards, exports and scheduled reports pick up the new wording, and every number stays the same.

Raising a measure's decimal places — from two to four, say — is safe too: the values already loaded stay exact, and new loads keep the extra digits.

A Source Column only says which column of a file fills the property, so a new one applies from the next load; the records already loaded keep their values.

Add a property

Add the property in the properties table as usual — see Add a property. The records already loaded have no value for it, because the files they came from had no such column:

  1. Until the dataset is loaded again, Explore refuses a question that names the new property rather than answer it with made-up values.
  2. Re-ingest the dataset (or load a new file) — see Re-ingest after you change the model. From then on the property can be used everywhere.
  3. Records whose files have the column get its values. Records loaded from older files without it keep an empty value: sums, averages, minimums, maximums and Counts leave them out, a filter for an empty value finds them, and a breakdown by the property puts them under its Empty Value Label.

To give old records a value, send them again in a file that has the column — with an incremental load the re-sent records replace the old ones by their Id.

A new dataset behaves the same way: it answers with no rows until its first load.

Rename an ID

The ID of a property or a dataset is what dashboards, saved filters, saved views and the API refer to. Changing it is therefore a removal of the old one and an addition of a new one: the new property or dataset starts empty, and everything that used the old ID stops finding it. Change the Name instead whenever only the label is wrong, and change an ID only on a model nobody has built on yet — then load the data again.

Change a reference

Pointing a reference at another dataset is accepted. From then on its values are matched against the Ids of the new target, so a value with no matching record there shows as Unknown in every breakdown. Load the new target dataset with the same Id values, or correct the referencing data.

Change the Id or the primary time property

The Id property is how records are told apart and how an incremental load finds the record to update; the Primary Time Property decides how the dataset's time filters narrow the data. Both are decided when the data loads, so after changing either one Re-ingest the dataset straight away — until then the dataset may not answer.

Changes that are refused

A change that would make the loaded values read wrongly is refused when you save, and nothing changes:

Change Why it is refused
A property's type (Measure to Attribute, Attribute to Time, …) The loaded values were read as the old type
Fewer decimal places on a measure Loaded values would lose digits
Another granularity on a Time property Old and new records would group by time differently
Removing a dataset that another dataset still refers to The references would point at nothing

For the last one, remove the referencing properties in the same step — the editor offers exactly that when you delete a referenced dataset.

Move to a new type or precision

To change a property's type, precision or granularity on a dataset that holds data, move to a new property:

  1. Add a property with a new ID and the type, decimal places or granularity you want, and the same Source Column as the old one.
  2. Re-ingest the dataset, so the new property is filled from the files.
  3. Check where the old property is used — the Dashboards column of the properties table counts the dashboards, and its panel names them (see Where a property is used) — and switch those cards and filters to the new property.
  4. Remove the old property.

If the whole workspace's data must be loaded again under a changed model, contact support: it can be rebuilt from the files you uploaded, and queries keep working while that runs.

Remove a property or a dataset

Click the trash can of a property, or Delete in a dataset's ⋯ menu. Queries stop seeing it straight away, and Undo brings it back while you are still in the editor — see Saving, Undo and Redo.

What used it reacts like this:

  • A dashboard card or a saved view that uses a removed property or dataset says This visualization cannot be shown — It uses a property that is no longer in the model. Its author fixes it by editing the card; nothing else on the dashboard is affected.
  • A criterion of a saved filter that names a removed dataset is left out, and the rest of the saved filter still applies.
  • A scheduled report shows the same card as Could not render.

So check a property's Dashboards count before you remove it. It counts only the dashboards you can open, so a colleague's private dashboard may still use a property that shows 0.

The space the removed data took is released only when the workspace's data is rebuilt; contact support if you need it back.

Update records

How a load treats records that are already there depends on its mode:

Load What happens to existing records
Incremental (the default) Every record of the new files is added. A record whose Id is already loaded replaces the old record
Replace Each dataset that has new files becomes exactly those files

An incremental load replaces a record as a whole: a value left empty in the new file becomes empty, it is not kept from the old record. Re-send the complete record, not only the column that changed.

The update needs an Id property. On a dataset without one, every load only adds records, so a record sent twice is counted twice — give each dataset an Id from your own system (see Give every row a stable ID).

Either way the switch is all at once: queries see the old records until the load completes, then the new ones, never a half-loaded dataset.

Remove records

An incremental load never removes a record. To remove records:

  • Replace the dataset with a file that no longer contains them — see Add or replace.
  • Wipe All Data empties every dataset of the model and keeps the model itself — see Wipe a model's data.

A dataset a connection fills is kept up to date by the connection, and its properties cannot be changed by hand — see Locked datasets.

← Loading DataImporting and Exporting a Model →