Hi Gurus,
I'm struggling with the following SSAS 2008 cube calculation that needs some updating:
CalcMeasure3= IIF(MyHierarhy.CurrentMember.level.ordinal = 1, SUM(Descendants(MyHirerarhy.CurrentMember,1,SELF),[CalcMeasure1]*[CalcMeasure2])/[CalcMeasure1],[CalcMeasure2])
In Excel 2010, if I look at the results using MyHirarhy at the specified ordinal, I would get:
Row CalcMeasure1 CalcMeasure2
CalcMeasure3
#1 Number
Number Number
#2 Number
Number Number
#3 1.# INF
Number Number
TOTAL Number Number 1. # INF
The goal would be not to use Row #3 in the CalcMeasure3 TOTAL when CalcMeasure1= 1.# INF. That would be the first part of IIF function. Hopefully :)
Best wishes,
Kaarel.