AverageI(Parameters: Array)
Parameters. Variable.
It returns the average points value of the specified variable if it contains integer values only.
If more than one variable is specified in Parameters, then the mean of corresponding variable points will be calculated. For example, the mean of variables for 2018 by all 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. Default value. Calculation does not take into account empty values.
False. Calculation takes into account empty values.
To calculate points average value of the variable containing not only integer values, use the Average function.
Formula | Result | Application |
= AverageI({Brazil|BCA}, False) | The average value of the Brazil|BCA series observations is calculated taking into account empty values. If the series contains real values, error appears. |
It can be used in formulas of calculated series of time series database and in formulas of attribute-based models of modeling container. |
= AverageI(X1, SetPeriod(2000,2010)) | The average value of the X1 factor points is calculated for the period from 2000 to 2010. | It is used in model variable-based formulas of modeling container. |
= AverageI(1, 2, 1, 7) | 3 | It can be used in any expressions. |
See also:
Functions Available in Expression Editor │ Arithmetic Functions │ IModelling.AverageI