...
Expand | ||
---|---|---|
| ||
Produces an array of the defined values for the item and/or its sub-items. Accepts modifiers: #ancestors, #children, #leaves, #strict, #subtree, #fromLevel, #toLevel, #reverse, #distinct (does not include duplicate values), #flatten (if function produces an array, includes the inner values, rather than the array), #compact |
...
Expand | ||
---|---|---|
| ||
Avg calculates an average of the defined values for the item and/or its sub-items. The result for avg is generally the same as sum/count. It returns nothing if there are no defined values for {x}.
Accepts modifiers: #all, #ancestors, #children, #leaves, #strict, #subtree, #preceding, #levels (together with #preceding), #baseLevel (together with #preceding). |
...
Expand | ||
---|---|---|
| ||
Count calculates a count of defined values (or truthy values, if the #truthy modifier is specified) for the item and/or its sub-items.
Accepts modifiers: #all, #ancestors, #children, #leaves, #strict, #subtree, #truthy, #preceding, #levels (together with #preceding), #baseLevel (together with #preceding). |
...
Expand | ||
---|---|---|
| ||
Join concatenates (joins) strings from the item and its parents (or other items, if modifiers are used).
Accepts modifiers: #ancestors, #children, #leaves, #strict, #subtree, #reverse, #separator, #beforeChildren, #afterChildren, #fromLevel, #toLevel, #distinct. |
...
Expand | ||
---|---|---|
| ||
Max returns the maximum defined value for the item and/or its sub-items. Numeric, date, duration and text fields can be compared. Text fields are compared lexicographically. If the formula produces an array, this will find the maximum element within that array. |
...
Expand | ||
---|---|---|
| ||
Produces the median value. Works the same as PERCENTILE#0.5. Undefined are ignored. Non-number values result in an error. Accepts modifiers: #ancestors, #children, #leaves, #strict, #subtree, #fromLevel, #toLevel |
...
Expand | ||
---|---|---|
| ||
Min returns the minimum defined value for the item and/or its sub-items. Numeric, date, duration and text fields can be compared. Text fields are compared lexicographically. If the formula produces an array, this will find the minimum element within that array. |
...
Expand | ||
---|---|---|
| ||
Parent extracts the value from the parent row or from an ancestor row by a specified level. Using the #level modifier, you can specify which row to extract the value from:
Accepts modifier: #level. |
...
Expand | ||
---|---|---|
| ||
Calculates a percentile value from the defined values for the item and/or its sub-items. The hierarchy of values is ignored – all subject values are treated equally. Must include the modifier #p, followed by the desired percentile (p=0.95, p=95). p=1 interpreted as 1%. Undefined are ignored. Non-number values result in an error. Accepts modifiers: #ancestors, #children, #leaves, #strict, #subtree, #fromLevel, #toLevel, #p (required) |
...
Expand | ||
---|---|---|
| ||
Sum calculates a numerical total for the values calculated for the item and/or its sub-items. Other variations of
Note that when the value of the expression under aggregation is not numeric (and cannot be converted to a number), it is ignored.
Accepts modifiers: #all, #children, #leaves, /wiki/spaces/structure/pages/3667890952, /wiki/spaces/structure/pages/3667890952, #preceding, #strict, #subtree, #levels (together with #preceding), #baseLevel (together with #preceding). |
...
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Process the whole subtree of the current row. This is the default behavior for sum, count, avg, min, max .
Can be used with: array, sum, count, avg, join, min, max, median, percentile, quartile1, quartile3, values. |
Anchor | ||||
---|---|---|---|---|
|
Expand | ||
---|---|---|
| ||
Same as #toLevel, except #toDepth cannot be used with MEDIAN, PERCENTILE, QUARTILE1, or QUARTILE3. |
...
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Specifies the position of the last row the aggregate function should take as input for a sequence. Position is specified by an integer parameter denoted as n below:
This modifier does not work with any tree types except #ancestors.
Can be used with: array, join, median, percentile, quartile1, quartile3, values. |
Anchor | ||||
---|---|---|---|---|
|
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Only count row if the subexpression produces a truthy value.
Can be used with: count. |
...