MDX calc question -
07-14-2006
, 03:50 PM
I have a cube that has two employee measures - termination_flag and
number_of_days_employed.
I want to take each record and use these two measures to create counts
in fields named "0-30 days", "30 to 60 days" etc.
so If the term_flag is 1 and the number_of_days falls within range, the
value is 1, otherwise it is zero.
The MDX I am currently using is:
Iif([Measures].[Term Count] >0 AND [Measures].[Days Employed] <30, "1",
"0")
THis works when I drill all the way down to a single employee for a
single day but does not work by rolling up into counts of each type on
higher levels.
How do I write this query so that calculates on the lowest level but
sums on every higher level?
Thanks in advance. |