Iif() returns values, not sets, so second expression won't work. For the
first expression, are you summing the cube default measure (otherwise
the measure should be explicit)?
In any case, you don't need Except for the true condition:
(
VBA!ISERROR(Count(StrToSet("[NS_Account]"))),
sum(DESCENDANTS([Account].CurrentMember, , LEAVES),
[Measures].[MyMeasure]),
sum(Except(DESCENDANTS([Account].CurrentMember, , LEAVES),
StrToSet("[NS_Account]")), [Measures].[MyMeasure])
)
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!