Control - Formula
Formula controls allow users to configure calculations that automatically update when referenced fields change, reducing manual computation and input errors.
To maintain worksheet performance, when a worksheet contains over 100,000 records, modifying formula configurations (e.g., editing calculation rules or changing referenced fields) will not automatically refresh historical data. Manual refresh is required if historical data updates are needed.
Formula controls support three types of calculations: number operations, date/time operations, and function-based operations.
-
1. Number calculation
Example: Amount = Quantity * Unit Price
After entering values for Quantity and Unit Price, the Amount is automatically calculated. It supports formatting options like thousand separators and percentage display.
-
2. Date calculation
- Calculate the duration between two dates.
- Calculate the duration between a specified date and the current time.
- Add or subtract a duration from a date/time to compute a new date/time.
-
3. Function-based calculation
Use built-in functions to process various field data types and output results in different formats.
-
Example:
I. Number calculation
Use Case: In order details, users need to display the unit price, quantity, and subtotal amount of purchased products. The subtotal amount does not need to be manually entered but can be automatically calculated using a formula field.