dbTalk Databases Forums  

Excluding a Single Member in a calculation subcube

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


Discuss Excluding a Single Member in a calculation subcube in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
selim.bayhan@gmail.com
 
Posts: n/a

Default Excluding a Single Member in a calculation subcube - 12-15-2005 , 09:43 AM






Hi,
Can I exclude a single member in a calculation subcube. I have a
structure like this

Countries
USA
UK
Germany
Turkey

I have to exclude one of this countries from the calculation sub cube.
But when I write a mdx with except function I got an error.

Any comments. ??


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

Default Re: Excluding a Single Member in a calculation subcube - 12-15-2005 , 11:13 AM






What does the MDX look like, and what does the eroor say?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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

Reply With Quote
  #3  
Old   
selim.bayhan@gmail.com
 
Posts: n/a

Default Re: Excluding a Single Member in a calculation subcube - 12-16-2005 , 12:49 AM



this works : {[Limit Or Risk].[Limit Or Risk].&[L]},
{[Companies_Not_Shared].[Group Name].&[GRUBU MEVCUT DEGIL]}

but when I write with except function
{[Limit Or Risk].[Limit Or Risk].&[L]},
except({[Companies_Not_Shared].[Group Name].AllMembers
},{[Companies_Not_Shared].[Group Name].&[GRUBU MEVCUT DEGIL]})

I got this error.

Unable to create calculated cell.

Formula Error - The subcube expression must be one of the following:
descendants(...) function,<level>.members, <dimension>.mmebers or a
single mmeber. in the calculated cell condition.

What can I do. To except the Group Name "GRUBU MEVCUT DEGIL"


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

Default Re: Excluding a Single Member in a calculation subcube - 12-16-2005 , 11:48 AM



Instead of excluding in the subcube, how about adding this to the
condition clause of the calculated cell:

'Not([Companies_Not_Shared].CurrentMember is
[Companies_Not_Shared].[Group Name].&[GRUBU MEVCUT DEGIL])'


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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

Reply With Quote
  #5  
Old   
selim.bayhan@gmail.com
 
Posts: n/a

Default Re: Excluding a Single Member in a calculation subcube - 12-19-2005 , 01:24 AM



It is working. 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.