Often, it is useful to rename a frequently used column directly in the dataset, instead of making the appropriate changes in each visual.
The following steps demonstrate how to rename a column. We are using the column iso_cc
(the ISO-compliant country code) in the dataset World Life Expectancy [data source samples.world_life_expectancy].
On the main navigation bar, click Data.
The Data view appears, open on the Datasets tab.
In the Datasets area, select World Life Expectancy (samples.world_life_expectancy)
.
In the Dataset Detail menu, select Attributes.
In the Attributes area, select Edit Attributes.
Under Measures, find the field iso_cc
, and click the down arrow on its right side.
From the menu, select Edit Attributes.
The Edit Table Column Properties window modal appears.
Notice that the Base Column name cannot be edited, but you can change the Display Name of the column.
Change it from iso_cc to ISO Country Code, and click Apply.
Under Dataset: World Life Expectancy, click Save.
As a result of this change, all new visuals created from this dataset will automatically use the new name.