Chapter 2
Aggregate functions
Aggregate functions perform statistical analysis on numbers (and also dates or times for
some functions) in:
• several fields in a record.
• related fields whether displayed in a portal or not.
• repeating fields.
For example, you can use the Sum function to add the values listed in a portal, as an
alternative to creating a report with grouped data and subtotals.
The parameter values can include a numeric constant (for example, 10) or any valid
expression. A constant parameter in a formula for a repeating field affects the result for
every repetition.
When repeating field parameters (field1; field2;...) include a non-repeating field, that value
is used in the result for only the first repetition unless you use the Extend function, page
156.
Values in repetitions that exceed the number of repetitions in the calculated field are
ignored. For example, a calculated field with three repetitions holds only three results,
even when one field referenced in the calculation has five repetitions.
Click a function name for details.
This function Returns
Average, page 18 The average of all valid, non-blank values in the specified field.
Count, page 19 The number of valid, non-blank values in the specified field.
List, page 20 The concatenation of all non-blank values in list form, separated by carriage
returns.
Max, page 21 The highest valid value in a field or fields.
Min, page 22 The smallest valid non-blank value in a field or fields.
StDev, page 23 The standard deviation of a series of valid non-blank values in a field or fields.
StDevP, page 25 The standard deviation of a population represented by a series of valid non-blank
values in a field or fields.
Sum, page 26 The total of all valid, non-blank values in the specified fields.
Variance, page 27 The variance of a series of valid non-blank values in a field or fields.
VarianceP, page 28 The variance of a population in a series of valid non-blank values in a field or
fields.