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: Members (String)
Category: Other
Description: The Members(string) function returns a member specified by the supplied string.
Syntax: MEMBERS( Ā«Member NameĀ» )
Technet Link: MDX Members (String) Function




The query below uses the supplied string to return the High School member from the Education hierarchy in the Customer dimension.
 

SELECT
      MEMBERS('[Customer].[Education].[High School]') ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
The query below uses the supplied string to return the unique name for the Reflector product.
 
WITH
      MEMBER [Measures].[ReflectorUniqueName] AS
      MEMBERS('[Product].[Product].[Reflector]').UniqueName
SELECT
      {[Measures].[ReflectorUniqueName]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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