sum sum
Returns the sum of the values of a set of expressions. Null values are ignored.
Category
Aggregation
Function syntax
sum(<parameters>)
Parameters
- listInteger
- listDecimal
- duration
- integer
- decimal
Signatures and returned types
sum(<listDecimal>)
Returns a decimal.
sum(<listInteger>)
Returns an integer.
sum(<integer>,<integer>)
Returns an integer.
sum(<decimal>,<decimal>)
Returns a decimal.
Examples
sum(@event{BarBeacon.inventory},5)
sum([10,3,8])
Returns 21.
sum([10.5,null,8.1])
Returns 18.6.
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76