Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDX Filter or Except

Status
Not open for further replies.

petersJazz

Programmer
Jan 28, 2002
222
EU
hi,

In a report (SSRS) users choose Country (a dimension) to get out some measures. Now I need to take away some Companies (another dimension) from the list. There is no relation between the dimension.

I have done some simple tests for doing this but I dont understand how to do it.

Code:
with member [company].ExcludeSolvency as 
'except([company].[All],
        {[Company].[00130],[Company].[00131]})'
select {[measures].[Actual local month]} on columns,
        [country].members on rows
from [QBDWDB2]
where ([company].ExcludeSolvency)

First, without the where clause, every company was included. With the where clause nothing is included.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top