If the specific members to be excluded don't change, then a Named Set
can be used to exclude them as a group. Here's a sample MDX query for
Foodmart Sales cube, with such a set:
Quote:
|
With Set [ExcludedLevels] as
|
'{[Education Level].[All Education Level].[Partial College],
[Education Level].[All Education Level].[Partial High School]}'
Select {[Measures].[Unit Sales], [Measures].[Profit]} on columns,
Hierarchize({[Education Level].[All Education Level],
Except([Education Level].[Education Level].Members,
[ExcludedLevels])}) on rows
from Sales
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!