The data type “Calculation” allows to define mathematical formulas that can include other number attributes of the same field definitionas variables. The calculation attribute of a field instance will then present the result, based on the current values of number attributes that are used as variables.
When creating or editing a field definition, add a data attribute of type “Calculation” and enter a mathematical formula. If the current field definition contains other data attributes of type number, you may reference these as variables within your formula by typing the “@” character. You may also add number attributes later on and reference those, too.
The examplary field definition contains three data attributes of type number to store the planned budgets of different departments. To compute the total budget on the fly, we create a calculation that sums up their values.
Mathematical Operators and Constants
You may create complex expressions by using the following operators and constants: