Sum(Parameters: Array)
Parameters. The variables, which sum should be found.
It returns the sum of corresponding points for two or more variables.
Variables in Parameters must be specified via comma.
It is available to set up calculation period for function. To do it, use the SetPeriod function by specifying it at any place of input array.
To calculate function without taking into account empty values, use the IgnoreMissing parameter by specifying it at any place of input array. Available parameter values:
True. Calculation does not take into account empty values
False. Default value. Calculation takes into account empty values.
Formula | Result | Application |
= Sum({Brazil|BCA},{China|BCA}, {Sudan|BCA},True) | Sum of corresponding observations of the Brazil|BCA, China|BCA and Sudan|BCA series. | It can be used in formulas of calculated series of time series database and in formulas of attribute-based models of modeling container. |
= Sum(X1,X2) | The sum of corresponding X1 and X2 factor points. |
It can be used in model variable-based formulas of modeling container. |
= Sum(4,2,5.1,-3) | 8.1 |
It can be used in any expressions. |
See also:
Functions Available in Expression Editor │ Transformations │ IModelling.Sum