sum()

The sum() function adds values and returns them into a time-series array.

Syntax

sum(value1, value2, [value3]…)

Argument Description
value1

(required)

The first number you want to add.

The value arguments can be constants (i.e., hard-coded values or attribute references) and/or references to metrics.

value2

(required)

The second number you want to add.
value3

(optional)

The additional numbers you want to add.

Where Available

  • Metric expressions

Examples

Where Example(s)
Metric expression sum(OPEX__m, CAPEX__m, Expense__m.actual__d.timePeriod(Program_Start__c))

sum(10, Employee_headcount__c)

 

Updated on February 16, 2023

Related Articles