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: UniqueName
Category: Metadata
Description: The UniqueName function returns the unique name of Dimensions, Hierarchies, Levels, and Members.
Syntax: «Hierarchy».UNIQUENAME
«Member».UNIQUENAME
«Level».UNIQUENAME
Technet Link: MDX UniqueName 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 unique name for a dimension, hierarchy, level, and member.
 
WITH
      MEMBER [DimUniqueName] AS
      [Date].UniqueName
      MEMBER [HierUniqueName] AS
      [Date].Fiscal.UniqueName
      MEMBER [LevUniqueName] AS
      [Date].Fiscal.Month.UniqueName
      MEMBER [MemUniqueName] AS
      [Date].Fiscal.[December 2002].UniqueName
SELECT
      {[DimUniqueName], [HierUniqueName], [LevUniqueName], [MemUniqueName]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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