TheHungarian
Programmer
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 ?
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 ?