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: DataMember
Category: Navigation
Description: The DataMember function returns the data member that is associated with a nonleaf member of a dimension.
Syntax: Ā«MemberĀ».DATAMEMBER
Technet Link: MDX DataMember Function




The query below returns the data member (using the default measure) for the Q2 FY 2003 member in the Fiscal Quarter level.
 

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

 
The following query returns the data member (for Sales Amount) for the Australia member in the Country level of the Geography hierarchy in the Geography dimension.
 

SELECT
      {[Geography].[Geography].[Country].[Australia].DataMember} ON COLUMNS
     
FROM
      [Adventure Works]
WHERE
      ([Measures].[Sales Amount])
 
 

 
 

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