COUNT

The COUNT function counts the number of items in a range.

Syntax

COUNT(value1, ...valueN?) - > number

Arguments

Example

Consider a scenario where you want to calculate the number of periods for which the simulations are performed for a [Sales] node. That is if simulation period is between July and September, the result should be 3.

In order to calculate the number of periods, the following formula should be written in the [COUNT] node:

COUNT ([Sales].SIM_PERIODS)

Refer [NODE].SIM_PERIODS to know more.

Result

Last updated