I think I managed to work it out (with some help)... I have a few dimensions
along which aggregations are fine, however, along the 4 different time
dimensions, I would need to average the measure in question... here is the
formula for the calculated member I created (note: a CASE statement in SQL
2005 would do the same thing):
Iif([Date Dim Type 1].currentmember.level.ordinal > 0, Avg( Descendants(
[Date Dim Type 1].CurrentMember, [Date Dim Type 1].[Date Name] ),
[Measures].[Special Measure] ),
Iif([Date Dim Type 2].currentmember.level.ordinal > 0, Avg( Descendants(
[Date Dim Type 2].CurrentMember, [Date Dim Type 2].[Date Name] ),
[Measures].[Special Measure] ),
Iif([Date Dim Type 3].currentmember.level.ordinal > 0, Avg( Descendants(
[Date Dim Type 3].CurrentMember, [Date Dim Type 3].[Date Name] ),
[Measures].[Special Measure] ),
Iif([Date Dim Type 4].currentmember.level.ordinal > 0, Avg( Descendants(
[Date Dim Type 4].CurrentMember, [Date Dim Type 4].[Date Name] ),
[Measures].[Special Measure] ), 0))))
"kelyb" wrote:
Quote:
I am trying to create a cube where one of the measures is "summed" across 2
of the six available dimensions, BUT is "averaged" accross the other 4
dimensions...
Can anyone suggest a formula or strategy to create this measure?? |