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: MeasureGroupMeasures
Category: Set
Description: The MeasureGroupMeasures function returns a set of measures that belong to the supplied measure group.
Syntax: MEASUREGROUPMEASURES( «String Expression» )
Technet Link: MDX MeasureGroupMeasures Function




The query below returns the measures in the Exchange Rates measure group.
 

SELECT
      {} ON COLUMNS,
      MEASUREGROUPMEASURES("Exchange Rates") ON ROWS
FROM
      [Adventure Works]
 
 

 
The query below returns the measures in the Internet Sales measure group. Notice this query does not return calculated members by default.
 

SELECT
      {} ON COLUMNS,
      MEASUREGROUPMEASURES("Internet Sales") ON ROWS
FROM
      [Adventure Works]
 
If you wrap the MeasureGroupMeasures function inside the AddCalculatedMembers function, all calculated members from all measure groups are returned.
 

 
 

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