MAX

The MAX function returns the largest number in a set of values. Node references are also accepted as arguments.

Syntax

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

Arguments

Example

Consider the below example with a node that has the demand for a particular product for 12 months.

To calculate the maximum demand, the following formula should be written in the [Maximum demand] node:

MAX([Demand].ALL_PERIODS)

We are including .ALL_PERIODS so that it will consider all the period values rather than one single period.

Result

Last updated