Returns the sum of all the input values.
Function
sum(input)
Arguments
Argument | Data Type |
input | numeric list |
---|---|
result | numeric |
Comments
Returns the sum of all the input values.
Note: The ReadiNow platform cannot always handle numbers greater than 2 billion. If large numbers of records are being added, then this may cause a partial calculation result to exceed this limit, which can cause calculations to fail, even if that partial result is then to be subsequently divided by some other number.
Note: it is also possible to calculate the sum of values in a report without writing a calculation by using column totals or by summarising a report relationship.
Examples
The following calculation assumes it is run in the context of a hypothetical purchase order record that has multiple items, each with a numeric 'weight' field. It returns the total of the weight values.
sum([Items].[Weight])