Solved

MDX Where Equivalent

Posted on 2007-03-27
2
259 Views
Last Modified: 2010-03-19
I have this MDX query:

SELECT NON EMPTY { [Measures].[Reflex Tests] , [Measures].[TOTAL RAN] ,
[Measures].[Incomplete] } ON COLUMNS,  
 {
   ( [Tbl ECONN ASSAY].[Assay Name].[Assay Name].ALLMEMBERS,
   [e Conn Instrument].[Salesman Code].[Salesman Code].[116],
   [e Conn Instrument].[Salesman Name].[Salesman Name].ALLMEMBERS,
   [e Conn Instrument].[CUST NO].[CUST NO].[131326],
   [e Conn Instrument].[Customer Name].[Customer Name].ALLMEMBERS )
}  ON ROWS  
  FROM  [Detail Usage] WHERE {  [ALL TIME].[TIME SID].[20070101] : [ALL TIME].[TIME SID].[20070301]  }

I would like to modify it to exclude some Assay Name values. The in T-SQL I would use the WHERE clause something like this:

WHERE AssayName NOT LIKE '%whatever%'

What is the MDX Equivelant syntax for this? Can I filter out certain assay names from the MDX result set somehow?
0
Comment
Question by:charlesbaldo
2 Comments
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 500 total points
ID: 18814236
Perhaps the Except function will do it for you.

WHERE {  
[ALL TIME].[TIME SID].[20070101] : [ALL TIME].[TIME SID].[20070301],
Except([Dim Assays], [Dim Assays].[AssayNameToExclude])
}

Not sure give it a go
0
 

Author Comment

by:charlesbaldo
ID: 18815257
Thank You not the answer but the right direction
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now