Description
The persist
function allows the persistence of a field for calculations outside the task list. It must be written around the actual formula and must be the first function called in a formula.
Syntax
persist(...)
Arguments
The persist
function does not take specific arguments but is applied around the desired calculation.
Return Types
The function returns the persisted result of the calculation, which can be used outside the task list.
Examples
Description | Formula | Result |
---|---|---|
Persisted sum of actual costs |
persist(sumAll("Actual Costs", true)) |
The total sum of actual costs is stored and can be used for other calculations outside the task list. |
Persisted calculation with condition |
persist(if(flavor("Category") == "Marketing", Costs, 0)) |
Stores the costs only for tasks that belong to the "Marketing" category. |
Notes
- Position in the formula:
persist
must be the first function in a formula. - Usage: The function is particularly useful when results need to be processed outside the task list.
- Limitations: Cannot be used within nested formulas.
Comments
0 comments
Please sign in to leave a comment.