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: AllMembers
Category: Set
Description: The AllMembers function returns a set that consists of all members of the supplied level.
Syntax: «Level».ALLMEMBERS
«Hierarchy».ALLMEMBERS
Technet Link: MDX AllMembers Function




The query below returns all members from Country attribute hierarchy in the Geography dimension.
 

SELECT
      {} ON COLUMNS,
      {[Geography].[Country].AllMembers} ON ROWS
FROM
      [Channel Sales]
 
 

 
The following query returns all members from City level of the Geography hierarchy in the Geography dimension.
 

SELECT
      {} ON COLUMNS,
      {[Geography].[Geography].[City].AllMembers} ON ROWS
FROM
      [Channel Sales]
 
 

 
This query returns all measures (including calculated members).
 

SELECT
      {} ON COLUMNS,
      {Measures.AllMembers} ON ROWS
FROM
      [Channel Sales]
 
 

 
 

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