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(@{BarBeacon.inventory},5)

sum([10,3,8])

Returns 21.

sum([10.5,null,8.1])

Returns 18.6.

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9