Control - Formula
The formula control allows you to define calculation formulas. When any field involved in the calculation is updated, the formula result is automatically recalculated, reducing manual work and input errors.
To ensure worksheet performance, when the number of records exceeds 100,000, updating formula configurations (such as modifying formulas or referenced fields) will not refresh historical data. To update historical data, use Batch Refresh.
The formula control supports three types of calculations:
- Numeric calculations
- Date and time calculations
- Function-based calculations
1. Numeric Calculations
Example:
In an order detail, fields include product, model, unit price, quantity, and subtotal. The subtotal can be calculated automatically using a formula instead of manual input.
Step 1: Add a Formula Control

Step 2: Select Calculation Type
For numeric calculations, select the Number type.

Step 3: Configure the Formula Expression
Click the expression input box to select fields involved in the calculation, then choose or manually enter operators to build the formula.

Expressions support nested calculations for complex scenarios such as ratio calculations.
The system provides built-in functions. You can search and use them by entering keywords.

Treat Empty Values as Zero
If Treat empty values as 0 is not enabled, the formula result will be empty when any referenced field is empty.
If enabled, empty values are treated as 0 in the calculation.

Supported Field Types
- Number, Currency, Rollup field
- Formula (not supported when the calculation type is “duration from now”)
- Foreign field (data storage type)
Step 4: Display Format Settings
You can configure how the calculation result is displayed, including decimal places, thousand separators, percentage format, and units.
Decimal Places
Supports up to 14 decimal places. You can define the rounding method:
- Round up
- Round down
- Round half up
Rounding Methods
Comparison of rounding methods:
| Result | Decimal Places | Round Up | Round Down | Round Half Up |
|---|---|---|---|---|
| 1.371 | 1 | 1.4 | 1.3 | 1.4 |
| 1.371 | 2 | 1.38 | 1.37 | 1.37 |

Trim Trailing Zeros
When Trim trailing zeros is enabled, trailing zeros in decimals are hidden.
For example, if the result is 2.8 and the decimal setting is 4 places:
- Disabled: displays as
2.8000 - Enabled: displays as
2.8
When enabled, exported values are treated as numeric. Otherwise, they are exported as text.
Percentage Display
The result is automatically multiplied by 100. For example:
- Result = 1 → displayed as 100%
- Result = 0.99 → displayed as 99%
When percentage display is enabled, units (prefix/suffix) are not shown.