Home      Functions     Common Solutions      Contact     






MDX Functions:
 
MDX Functions

 
Common Solutions

Common Solutions
 
Resource Links

MDX Books
MDX Related Software
MDX Related Blogs
 
Other Links

Contact Us
 
Microsoft SQL Server Analysis Services Function Page
Function Name: Hierarchize
Category: Set
Description: The Hierarchize function orders the members of a set in a hierarchy.
Syntax: HIERARCHIZE( «Set»[, POST] )
Technet Link: MDX Hierarchize Function




The query below shows members of the Fiscal hierarchy in an arbitrary order.
 

SELECT
      {} ON COLUMNS,
      {[Date].[Fiscal].[Month].[July 2003], [Date].[Fiscal].[Month].[August 2003], [Date].[Fiscal].[Fiscal Year].[FY 2003]} ON ROWS
FROM
      [Adventure Works]
 
To order the members in a hierarchy, see the query below.
 

 
The following query will order the members of the set in a hierarchy.
 

SELECT
      {} ON COLUMNS,
      HIERARCHIZE({{[Date].[Fiscal].[Month].[July 2003], [Date].[Fiscal].[Month].[August 2003], [Date].[Fiscal].[Fiscal Year].[FY 2003]}}) ON ROWS
FROM
      [Adventure Works]
 
 

 
 

 
Copyright 2008 by MDXpert.com.
 
Terms of Use                              Privacy Statement
 
Site Powered By - WinHost.Com