MDX - IIF Statement MDX Expression - OLAP Cube

syedbokhari

Board Regular
Joined
Aug 19, 2013
Messages
94
Hi Guys,

I'm trying to develop a MDX IFF expression and I can't seem to be able to write it properly as I don't usually write in MDX.

I want to have tiers based on customer life time value.

I have this IFF statment which works perfectly fine

IIF([Measures].[Lifetime Value]>500, "Yes","No")

However I want the following formula I write in excel in a MDX which will work.

Outline
IF(AND Lifetime>=500,<1000,"Bronze"),IF(AND(>=1000,<2500),"Silver",IF(AND(>=2500,<5000),"Gold",IF(AND(>5000),"Platinum","Not VIP").

I'm not the best at writing these and I will have to write it in the OLAP tools section within EXCEL 2013.

Any help will be greatly appreciated.

Thanks Chaps,

*(I may have posted this in Excel forum by accident) - Apologies
 
Last edited by a moderator:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,224,158
Messages
6,176,745
Members
452,741
Latest member
Muhammad Nasir Mahmood

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top