HIER_CHILD_COUNT returns the number of children of either all dimension members in a hierarchy or a particular member. The hierarchy can be either level-based or value-based.
NUMBER
HIER_CHILD_COUNT( [ member [WITHIN] ]
dimension | hierarchy)
member is a value of hierarchy whose children are tallied. Otherwise, the children of all members of the hierarchy are tallied.
dimension is the dimension whose members are used in the calculation.
hierarchy is a hierarchy of dimension. Otherwise, the default hierarchy is used.
The following example returns the number of children for each member of the Calendar hierarchy.
HIER_CHILD_COUNT(global.time.calendar)
| Member | Number of Children |
|---|---|
| 2003 | 4 |
| Q3-03 | 3 |
| Jul-03 | 0 |
The next example returns the number of children for just one member of the default Fiscal hierarchy.
HIER_CHILD_COUNT('FY-03' WITHIN global.time)
| Member | Number of Children |
|---|---|
| FY-03 | 4 |
Copyright © 2003, 2007, Oracle. All rights reserved.