dbTalk Databases Forums  

How to change the formula in Calculated Members based on Dimensions

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


Discuss How to change the formula in Calculated Members based on Dimensions in the microsoft.public.sqlserver.olap forum.



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

Default How to change the formula in Calculated Members based on Dimensions - 09-05-2006 , 04:05 PM






I have a calculated member "RX Scores" and a Dimension [Rx Flag]
which has value 'Y' and 'N'

So I need to change the calculation in calculated member based on
"Y" or "N" value.

Below is my Calculated Members "RX Score"

iif([Rx Flag] value is "N" , Use different calucation, Use
different calucation)

How can we write a Calculated Members with above logic?

Any help would be appericate!!!

Thanks
Sam


Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: How to change the formula in Calculated Members based on Dimensions - 09-05-2006 , 04:27 PM






iif([dimension].[level].currentmember is [dimension].[level].[member], TRUE,
FALSE)

so something like should work for you:
iif([Rx Flag].[Rx Flag].currentmember is [Rx Flag].[Rx Flag].&[Y], TRUE,
FALSE)

regarding if you use AS2000 or 2005 the currentmember formula is:
2000: [Rx Flag].currentmember
2005: [Rx Flag].[Rx Flag].currentmember

I hope this helps you


"Sam" <msam77 (AT) gmail (DOT) com> wrote

Quote:
I have a calculated member "RX Scores" and a Dimension [Rx Flag]
which has value 'Y' and 'N'

So I need to change the calculation in calculated member based on
"Y" or "N" value.

Below is my Calculated Members "RX Score"

iif([Rx Flag] value is "N" , Use different calucation, Use
different calucation)

How can we write a Calculated Members with above logic?

Any help would be appericate!!!

Thanks
Sam




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.