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: Name
Category: Metadata
Description: The Name function returns the name of Dimensions, Hierarchies, Levels, and Members.
Syntax: «Member».NAME
«Hierarchy».NAME
«Level».NAME( Level )
Technet Link: MDX Name Function




The query below shows the difference between the name and the UniqueName for a member.
 
WITH
      MEMBER [MemName] AS
      [Date].Fiscal.[December 2002].Name
      MEMBER [MemUniqueName] AS
      [Date].Fiscal.[December 2002].UniqueName
SELECT
      {[MemName], [MemUniqueName]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
The following query returns the name for a dimension, hierarchy, level, and member.
 
WITH
      MEMBER [DimName] AS
      [Date].Name
      MEMBER [HierName] AS
      [Date].Fiscal.Name
      MEMBER [LevName] AS
      [Date].Fiscal.Month.Name
      MEMBER [MemName] AS
      [Date].Fiscal.[December 2002].Name
SELECT
      {[DimName], [HierName], [LevName], [MemName]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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