Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MDX - Average of months values for quarters, semesters and years

$
0
0

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) :

YearMonthValuesum Qavg Qsum Savg Ssum Yavg Y
20111130,71416,58138,86843,66140,611499,33136,30
20112146,71
20113139,15
20114133,51427,08142,36
20115147,14
20116146,43
20117128,58373,59124,53655,67131,13
20118109,98
20119135,03
201110135,83282,09141,04
201111146,27
201112NULL

Thanks for help.


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>