dbTalk Databases Forums  

filter on list of properties

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


Discuss filter on list of properties in the microsoft.public.sqlserver.olap forum.



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

Default filter on list of properties - 08-16-2005 , 02:51 PM






I would like to create a set by filtering a dimension on a property value
being one of a list of possible values. In SQL it would be equivalant to the
IN clause. The pseudo MDX being:
set [f[ as 'filter( [dimention].members, [dimension].currentmember in (
"val1", 'val2", ... )'

Is there any way to do this in MDX? I have tried using the VBA filter and
the Excel Match functions work with no success so far.

Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: filter on list of properties - 08-17-2005 , 01:37 PM






This Foodmart queries shows a possible way:

with member [measures].SM as 'store.currentmember.Properties("Store Manager")'
select
{ [unit sales], SM} on columns,
filter(store.[store name].members, store.currentmember.Properties("Store
Manager") ="Jones" or store.currentmember.Properties("Store Manager")
="Smith" ) on rows
from sales
HTH,
--
Brian Altmann
BI Specialist
Huddle Group S.A (www.huddle.com.ar)
www.geocities.com/brianaltmann/olap.html


"MEmerson" wrote:

Quote:
I would like to create a set by filtering a dimension on a property value
being one of a list of possible values. In SQL it would be equivalant to the
IN clause. The pseudo MDX being:
set [f[ as 'filter( [dimention].members, [dimension].currentmember in (
"val1", 'val2", ... )'

Is there any way to do this in MDX? I have tried using the VBA filter and
the Excel Match functions work with no success so far.

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.