dbTalk Databases Forums  

MDX filter help

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss MDX filter help in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sam
 
Posts: n/a

Default MDX filter help - 05-05-2005 , 05:25 PM






WITH Member [Measures].[P_Type_Dim Name] as
'[P_Type_Dim].currentmember.properties("Pr Id")'
SELECT {
([Measures].[P_Type_Dim Name], [Scenario_Dim].[Actual])
} ON COLUMNS,
filter( { [P_Type_Dim].Members}, ([Measures].[P_Type_Dim Name],
[Scenario_Dim].[Actual]) <> 104 ) ON ROWS
FROM P_cube


([Measures].[P_Type_Dim Name], [Scenario_Dim].[Actual]) gives me list like
101, 102, 103......

I want to filter such a way that not to display 104. I added a filter as
above. I got an error
Formula error - Property name is not valid: "pr Id"

But if I remove the filter condition it works fine.

Once this resolved I have to do conditional filter. Help me!

Thanks,
Sam

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: MDX filter help - 05-05-2005 , 06:13 PM






A couple of things to check:

- If [P_Type_Dim] has multiple levels, is the "Pr Id" property defined
at all levels (since [P_Type_Dim].Members returns members from all
levels)?

- Member Properties are strings, so compare to "104"


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.