A calculated field is an additional data field with values calculated using a formula.
You can use calculated fields to create new dimensions and measures. The data source remains unchanged.
To write formulas, you can use the existing dataset fields, parameters, constants, and functions.
You can create calculated fields in the dataset or wizard interface:
Calculated fields from a dataset are available in all charts above this dataset.
Calculated fields from the wizard are only available for saved charts.
When creating a formula, you can use any dataset field, including the calculated fields you previously created. In a formula, you can also use parameters created at the dataset level.
After creating a calculated field and saving the dataset, the field becomes available to all charts and dashboard selectors based on that dataset.
To hide fields in the wizard, enable the Do not display in wizard option when creating them.
You can add new fields when creating and editing charts in the wizard:
In the list of fields from a dataset.
In the visualization section.
When creating a formula, you can use any dataset field, including the calculated fields you previously created. In a formula, you can also use the parameters of the chart or dataset based on which the chart is created.
If a field is created in a chart, it will not be available to dashboard selectors and other charts.
Warning
In multi-dataset charts, calculated fields are not applicable to fields from multiple datasets.
Write formulas according to the following requirements:
Specify function arguments in parentheses, e.g., YEAR([DATE1]). Separate multiple arguments with commas.
Specify field names in square brackets, such as [CustomerID].
Make sure to enter the values of fields and constants in a valid format. For example, use a period as a decimal separator: 0.123.
Note
Field name syntax is case-sensitive. For example, if a formula uses [NAME], and a dataset contains only [Name], the formula field will be highlighted in red.
Function syntax is not case-sensitive. For example, count and COUNT will perform the same operation.
For more information on format, types of accepted arguments, and returned function values, use the Reference button when adding a field in the formula editor interface.