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: Level
Category: Metadata
Description: The Level function returns a level for the specified member.
Syntax: Ā«MemberĀ».LEVEL
Technet Link: MDX Level Function




The query below returns the Quarter level for the Q1 FY 2003 member.
 

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

 
The following query returns the Name of the Quarter level for the Q1 FY 2003 member.
 
WITH
      MEMBER [LevelName] AS
      [Date].[Fiscal].[Fiscal Quarter].[Q1 FY 2003].Level.Name
SELECT
      {[LevelName]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
The following query returns the UniqueName of the Quarter level for the Q1 FY 2003 member.
 
WITH
      MEMBER [LevelName] AS
      [Date].[Fiscal].[Fiscal Quarter].[Q1 FY 2003].Level.UniqueName
SELECT
      {[LevelName]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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