Go to primary content
Previous
Previous
 
Next
Next

Hierarchy Top (Text)

Returns the top value in the specified hierarchy.

Template

Topmost ancestor of the current member in dimension and hierarchy.

Example

This calculated measure returns the topmost ancestor of time periods in the Fiscal hierarchy.

Calculation

Topmost ancestor of the current member in TIME and TIME.FISCAL.

OLAP Expression Syntax

HIER_TOP(TIME.FISCAL)

Query Results

The Top column shows that the topmost ancestor is TOTAL.

Time       Top        
---------- ------------
FY2006     TOTAL       
FY2006.Q1  TOTAL       
FY2006.Q2  TOTAL       
FY2006.Q3  TOTAL       
FY2006.Q4  TOTAL