Gets the number of child members for the current dimension member or for a specified member. This function can be used in these types of rules:
HS.<Object>.NumChild("Element") HS.Node.NumChild("S#Scenario.Y#Year.P#Period.E#Entity") HS.<Object>.NumChild("") HS.Custom(Dimension).NumChild(Member)
Table 71. Syntax for NumChild Function
You can embed the NumChild function in the Exp function. If you embed the NumChild function, do not surround NumChild’s argument with quotation marks.
A string that identifies the number of child members. For Node, gets the number of active children of the specified member.
In this example, the application contains an account named SalesChild that stores the average sales amount for the entities immediately under the Regional entity. To calculate the SalesChild amount, the example divides the Sales account’s amount by the number of children directly under Regional.
HS.Exp "A#SalesChild = A#Sales/HS.Entity.NumChild(Regional)"