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: Dimension
Category: Other
Description: The Dimension function returns a hierarchy for a specified member, level, or hierarchy.
Syntax: «Hierarchy Expression».Dimension
«Level Expression».Dimension
«Member Expression».Dimension
Technet Link: MDX Dimension Function




The following query returns the default member (All Periods) for the Fiscal hierarchy for the Q1 FY 2003 member.
 

SELECT
      {[Date].[Fiscal].[Fiscal Quarter].[Q1 FY 2003].Dimension} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
The query below returns the name of the hierarchy for the Q1 FY 2003 member.
 
WITH
      MEMBER [Hier] AS
      [Date].[Fiscal].[Fiscal Quarter].[Q1 FY 2003].Dimension.Name
SELECT
      {[Hier]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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