Hello,
I would like to aggregate month values in MDX query to get quarter, semester and year ones.
The problem is that "SUM" is used by default, but I want the "average" for quarter, semester and year values.
Example (AVG columns are expected, not SUM ones) :
Year | Month | Value | sum Q | avg Q | sum S | avg S | sum Y | avg Y |
2011 | 1 | 130,71 | 416,58 | 138,86 | 843,66 | 140,61 | 1499,33 | 136,30 |
2011 | 2 | 146,71 | ||||||
2011 | 3 | 139,15 | ||||||
2011 | 4 | 133,51 | 427,08 | 142,36 | ||||
2011 | 5 | 147,14 | ||||||
2011 | 6 | 146,43 | ||||||
2011 | 7 | 128,58 | 373,59 | 124,53 | 655,67 | 131,13 | ||
2011 | 8 | 109,98 | ||||||
2011 | 9 | 135,03 | ||||||
2011 | 10 | 135,83 | 282,09 | 141,04 | ||||
2011 | 11 | 146,27 | ||||||
2011 | 12 | NULL |
Thanks for help.