Search Results

Replacing a specific value in a column

You can use Replace value with the This occurrence only-option to replace a specific value directly from a table visualization, from the Details-on-Demand, or, from the data table view of the expanded Data panel.

Prerequisites

Imported data (not in-database data) must be loaded in the analysis.

If you want to replace just a single occurrence of a value in a column, you must be able to identify the row, even if the data is reloaded. This is done by specifying key columns for the data table. Key columns can be specified using the installed client (Spotfire Analyst), in the Data Table Properties.

See also Replacing all occurrences of a value in a column.
Note: These steps are used to replace a few values in a column only, not to change the formatting of a column or to replace an entire data table. If you want to combine several different categories into one, you might want to use Group from Marked Categories instead.

Procedure

  1. In a table visualization, in the Details-on-Demand, or, in the data table view of the expanded Data panel, double-click on the value you want to replace.
    You can also right-click and select Replace Value from the pop-up menu.
  2. Type a new value in the popover.
  3. Make sure that This occurrence only is selected.
  4. Click Apply.

Result

The value is replaced and any visualizations using the data are updated.
The replaced value is added as a transformation on top of your data. The original data in your data source is not affected by this change. This means that if the underlying data is reloaded, the transformation will be reapplied after the reload. If a previous key column identification is broken by the reload, so that more than one value is affected by the transformation, you will be informed about this in the source view. Also, if the underlying value is changed in the source data, so that the transformation is no longer applicable, you will see an indication about this in the source view.
Tip: You can remove a previously added 'replace value'-operation from your data table. See Removing operations in the Source view for more information.