Description
The maxAll
function returns the largest value of a specified function across all objects. Optionally, subtasks can also be included in the calculation.
Syntax
maxAll('expression', includeSubtasks)
Arguments
Argument | Description |
---|---|
expression |
An explicit calculation or a field whose maximum value is to be determined. |
includeSubtasks |
A boolean value (true or false ), indicating whether to include subtasks in the calculation. |
Return Types
The function returns the largest value of the evaluated objects. The return value is of type float
. This allows for precise representation of decimal values.
Examples
Example | Result |
---|---|
maxAll('cost', false) |
150.00 |
maxAll('actualCost', true) |
3000.50 |
maxAll('duration', false) |
80.00 |
Notes
- The
maxAll
function can be used to determine the maximum value in numeric fields. - If
includeSubtasks
is set totrue
, values from subtasks are also included in the calculation. - Note that the return value is always a
float
, even if no decimal places are present.
Comments
0 comments
Please sign in to leave a comment.