Taking on Calculated Fields? We've got you covered.
On this Page
Please note: This is an advanced admin feature. This field type will not be suitable for all administrators.
This field type is very specific and should only be used when you would like to create a dynamic data output.
Inserting Values
Inserting Operator via the dedicated buttons above the expression box:
- From the Calculated type field configuration, click the button which displays the operator required.
- This operator will be displayed where the cursor is within the expression box.
For example, to input an addition operator, select the + button in the top left corner above the expression box.
These dedicated operator buttons do not include all available operators.
Inserting Operator via dropdown menu:
- From the Calculated type field configuration, click the blue Operators box
- Click the required operator from the dropdown list
- This operator will be displayed where the cursor is within the expression box
For example, to input an addition operator, select the Sum + button in the dropdown list.
This list contains all supported operators.
Inserting Fields via dropdown menu:
- From the Calculated type field configuration, click the orange Fields box.
- Click the required field from the dropdown list.
- This field will be displayed where the cursor is within the expression box.
For example, to input a field called Big Field, select Big Field in the dropdown list.
This list contains all custom and system fields.
Inserting Custom Number values:
- From the Calculated type field configuration, click the green Number box above the expression box.
- A green number will be displayed where the cursor is within the expression box.
- Click this newly input number to edit the value.
For example, to input a number of 100, select the green number button and change the default value to 100 in the expression box.
Deleting Values
You can only delete values one at a time.
- From the Calculated type field configuration, click the Value you wish to delete
- Click the 'X' in the top right corner of the highlighted value
If you are using the IF Function and wish to remove a nested IF, you can do so via the fixed 'X' in the top right corner of the function.
Moving expression values
You can move around all added values to an expression using a drag-and-drop interaction.
- Click and hold the value you wish to move
- Drag the selected value to the new position in the expression
Basic Function
How to create a basic function
- From the Calculated type field configuration,
- Click the burgundy Functions box above the expression box.
- Click Basic from the dropdown list.
This is the default expression format.
Basic function allow you to create an expression using field(s).
For example, Total Cost equals Salaries plus Expenses:
Calculated Field Name = Total Cost
Expression would look like:
= [Field: Salaries] [Operator: +] [Field: Expenses]
If Salaries = 5 and Expenses = 10:
Total Cost = 5 + 10
Total Cost = 15
IF Function
How to create a IF function
- From the Calculated type field configuration,
- Click the burgundy Functions box above the expression box.
- Click IF from the dropdown list.
- The expression box will update to the IF format.
IF function runs a logical test and returns one value for a TRUE result and another for a FALSE result.
For example, to "pass" scores above 70:
= IF ( Score > 70 )
THEN Pass = 1
ELSE Pass = 0
If Score = 10, Pass = 0.
More than one condition can be tested by nesting IF functions.
Return value
Arguments
- logical_test - A value or logical expression that can be evaluated as TRUE or FALSE.
- value_if_true - [optional] The value to return when logical_test evaluates to TRUE.
- value_if_false - [optional] The value to return when logical_test evaluates to FALSE.
Syntax
Notes
This field only supports numerical values. We plan to expand to dates and text inputs in the future.
Supported Field Types: