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: UnknownMember
Category: Navigation
Description: The UnknownMember function returns the unknown member for a supplied member or level.
Syntax: .UNKNOWNMEMBER
Technet Link: MDX UnknownMember Function




The query below returns the name of the unknown member for the Product level in the Product dimension.
 
WITH
      MEMBER [Measures].[UnkName] AS
      [Product].[Product].UnknownMember.Name
SELECT
      {[Measures].[UnkName]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
The following query returns null because the unknown member has not been identified for the Fork End member in the Product hierarchy for the Product dimension.
 
WITH
      MEMBER [Measures].[UnkName] AS
      [Product].[Product].[Fork End].UnknownMember.Name
SELECT
      {[Measures].[UnkName]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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