HierarchyElementComponentAdd

HierarchyElementComponentAdd adds a component (child) to a consolidated element. You can't use this function in the Epilog procedure of a TurboIntegrator process.

This function is valid in TM1® TurboIntegrator processes only.

Syntax

HierarchyElementComponentAdd(DimName, HierName, ConsolidatedElName, ElName, ElWeight);

Argument

Description

DimName

The parent dimension of the consolidated element to which you want to add a child.

HierName

The hierarchy of the specified dimension.

ConsolidatedElName

The element to which you want to add a child.

ElName

The name of the child element.

ElWeight

The weight of the child element.

Example

HierarchyElementComponentAdd('Measures', 'Europe', 'Net Sales', 'Expenses', -1);

This example adds the child Expenses to the Net Sales consolidation in the Europe hierarchy of the Measures dimension. The child has a weight of -1 in the consolidation.