Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

Sum

Use this function in an equation to calculate total values for a symbol or group of symbols that do not roll up to a specific parent.

In a hierarchy, it is easy to calculate the sum of all child symbols of a parent. However, you may find the Sum function useful to calculate the total of a series of symbols that do not roll up to a specific parent. All symbols must have the same weight (positive, negative, or zero).

Do not confuse the Sum function with the WSum command:

Function

Description

Sum

To calculate total values for a symbol or group of symbols that do not roll up to a specific parent, when all symbols have the same weight.

WSum

To calculate total values for a symbol or group of symbols that do not roll up to a specific parent, when all symbols do not have the same weight.

Copy

Syntax

SUM (Value1[,Value2][,Value3])        

where:

  • Each Value is the name of a NUM list variable, or a numeric value or expression that evaluates to a number.
Copy

Syntax example

SUM (Var1, Var2, Var3)        

Published:

Sum

Use this function in an equation to calculate total values for a symbol or group of symbols that do not roll up to a specific parent.

In a hierarchy, it is easy to calculate the sum of all child symbols of a parent. However, you may find the Sum function useful to calculate the total of a series of symbols that do not roll up to a specific parent. All symbols must have the same weight (positive, negative, or zero).

Do not confuse the Sum function with the WSum command:

Function

Description

Sum

To calculate total values for a symbol or group of symbols that do not roll up to a specific parent, when all symbols have the same weight.

WSum

To calculate total values for a symbol or group of symbols that do not roll up to a specific parent, when all symbols do not have the same weight.

Copy

Syntax

SUM (Value1[,Value2][,Value3])        

where:

  • Each Value is the name of a NUM list variable, or a numeric value or expression that evaluates to a number.
Copy

Syntax example

SUM (Var1, Var2, Var3)        

For an optimal Community experience, Please view on Desktop