If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Comparing Multiple Dimensions in Data Item using MDX

Started by LFC, 02 Aug 2016 11:40:06 PM

Previous topic - Next topic

LFC

Hi All,

I am trying to write a MDX expression to replicate a relational Case statement.

the below is the Case statement which i have been trying to replicate using MDX, the STATE and PRODUCT are in two seperate dimensions of their own.

case
when STATE = 'FL' and PRODUCT IN ( '284', '257' , '342' )  THEN ( 0 )
when  STATE = 'VA' and PRODUCT = '554'  THEN ( 0 )
else AMOUNT
end

any suggestions would be greatly appreciated.