ElementIndex

ElementIndex returns the index number of an element within a dimension.

This function is valid in both rules and TurboIntegrator processes.

Syntax

ElementIndex(dimension, hierarchy, element)

Argument

Description

dimension

A valid dimension name.

hierarchy

The name of the hierarchy within the dimension.

element

The name of an element within the dimension.

If the element is not a member of the dimension specified, the function returns 0.

Example

Brazil has an index value of three in the Region dimension. The example returns 3.

ElementIndex('Region', 'South America', 'Brazil')