Solved

MDX Where Equivalent

Posted on 2007-03-27
2
265 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Query 2 62
configure service broker on all databases 2 83
Help  needed 3 26
Addition to SQL for dynamic fields 6 38
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

832 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