ElementLevel

ElementLevel returns the level of an element within a dimension.

This function is valid in both rules and TurboIntegrator processes.

Syntax

ElementLevel(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.

Example

ElementLevel('Region','Countries', 'Europe')

In the Region dimension, individual nations (Level 0) add up to regions (Level 1). The regions then add up to super-regions (Level 2), which in turn add up to the world (Level 3). The example returns 2, as Europe is a Level 2 element.

Example of levels in the Region dimension.