dbTalk Databases Forums  

Filter a member set from Dimension

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


Discuss Filter a member set from Dimension in the microsoft.public.sqlserver.olap forum.



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

Default Filter a member set from Dimension - 01-23-2004 , 05:04 PM






Hello,

I am trying to generate a member set with the members
from the entity dimension whose property "Owner_Type"
value is equal to "Owned". Then after i produce the
member set apply a sum function.

I got an error when i tried to create this member set by
using the following MDX calculated member:

Calc_Member = FILTER([Entity].Members,
[Entity].CurrentMember.properties("OWNER_TYPE")="Owned")

it gives me this error:"Cannot convert set to Expression
in the filter function"

any ideas will be very apprecitated

thanks




Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Filter a member set from Dimension - 01-23-2004 , 05:21 PM






Something like so. Replace "My Measure".

SUM(FILTER([Entity].Members,
[Entity].CurrentMember.properties("OWNER_TYPE")="Owned"),
Measures.MyMeasure)

public @ the domain below
www.tomchester.net

"martino rivaplata" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

I am trying to generate a member set with the members
from the entity dimension whose property "Owner_Type"
value is equal to "Owned". Then after i produce the
member set apply a sum function.

I got an error when i tried to create this member set by
using the following MDX calculated member:

Calc_Member = FILTER([Entity].Members,
[Entity].CurrentMember.properties("OWNER_TYPE")="Owned")

it gives me this error:"Cannot convert set to Expression
in the filter function"

any ideas will be very apprecitated

thanks






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.