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

Need help with the averages

$
0
0

Hi All,

Finally i found a solution. a) I have a time dim from the ware house and its joined to the fact table based on the dateid, since the fact table is getting only the data for the working days , the ware house time dim is showing only those days as count.

b) I created a new time dim in SSAS TIMEDIMSSAS

c) I joined the new TIMEDIMSSAS to the warehouse time dimension and the fact table and created new measure AvgWorkDone over time and Avg Rev over time.

I'm getting what i wanted. BUT here is a new problem , when i select multiple months the grand total (which should be Average is showing wrong average and i'm not sure why), can anyone please help ?

Row Labels AvgRevenue AvgWorkDone
1 $4.17 277.6801802
1368 $4.17 277.6801802
February 2014$1.59 105.7971014
January 2014$0.97 64.66666667
March 2014$9.52 634.5512821
Grand Total $4.17

277.6801802

The values were supposed to be (1.59+.97+9.52)/3=4.02 and NOT 4.17 for Revenue. Similarly for WorkDone (105.79+64.66+634.55)/3=268.33 and NOT 277.68

Please can some one suggest what is going wrong here?

Thanks



SV


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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