ElementIsAncestor

ElementIsAncestor determines whether element1 is an ancestor of element2 in the specified dimension. The function returns 1 if element1 is an ancestor of element2, otherwise the function returns 0.

This function is valid in both rules and TurboIntegrator processes.

Syntax

ElementIsAncestor(dimension, hierarchy, element1, element2)

Argument

Description

dimension

A valid dimension name.

hierarchy

The name of the hierarchy within the dimension.

element1

The name of an element within the dimension.

element2

The name of an element within the dimension.

Example

In the Western hierarchy of the Region dimension, the element Europe is an ancestor of Germany. The example returns 1.

ElementIsAncestor('Region', 'Western', 'Europe', 'Germany')