You can edit a calculated field to modify it. But, before you edit a calculated field, you should know where it is stored. That means, in which table the calculated field is stored. This holds both for implicit and explicit calculated fields. A calculated field can be associated with only one table in a Data Model.
To find the calculated fields in the Data Model, do the following −
As you can see in the above screenshot, Show Implicit Calculated Fields is highlighted on the Ribbon. If it is not highlighted, click it again.
You can also observe that there are 4 checkboxes – Columns, Calculated Fields, Hierarchies, and KPIs. By default, all the 4 are selected.
This will leave only Calculated Fields box checked.
As seen in the above screenshot, only the Results table has fields displayed. The other two tables are blank. This shows that only the Results table has calculated fields. You can also observe that the implicit calculated fields have an icon displayed, whereas the explicit calculated field – Medal Count does not have that icon.
You can view the calculated fields in the Table as follows −
The table will appear in Data View.
As seen in the above screenshot, the calculated fields appear in the calculation area of the table.
You can change the formula used for a calculated field in the table.
The formula will get highlighted.
You will learn more about the DAX formulas in the subsequent chapters.
You can change the name of a calculated field in the Data Table either in Data View or Diagram View.
The calculated field name will get highlighted.
You will learn more about the DAX Syntax in the subsequent chapters.
The name will get into editing mode. Type the new name for the calculated field.
You can view the calculated fields in the Excel window as follows −
Manage Calculated Fields dialog box appears. The names of the explicit calculated fields in the Data Model appear in the dialog box.
You can change a calculated field in the Manage Calculated Fields dialog box.
Calculated Field dialog box appears.
You can rename a calculated field in the Manage Calculated Fields dialog box.
Calculated Field dialog box appears.
You can move a calculated field within the calculation area of the table in which it is created. But, it cannot be moved to another table.
Note − It does not really matter where the calculated field is within the calculation area of the table because the data references in the DAX formula of the calculated field are by the column names and are stated explicitly.