Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The "case..when..then.." instruction in MDX ?

Status
Not open for further replies.

TheHungarian

Programmer
Apr 19, 2005
5
FR
Hi,

I just cannot find the correct syntax... The idea is to replace several iif() by something like that :

with
member measures.test as
'case commercial.currentmember.level.ordinal
when 1 then measures.quantity
when 2 then measures.sales
else measures.budget
end
'
select
{measures.test} on 0,
{descendants(commercial.[All commercials],1,self_and_after)} on 1
from Cube1
where (time.[2005])

Any idea ?

 
if you are using Microsoft, it doesnt work (even though msdn tells you how to use it)...

Switch does not work either, yet. found any other ways around it ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top