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

How to get total of LY measure?

$
0
0

Is there a way to get the total of a LY calculated measure using MDX? Sorry if I am asking a dumb question as I am new to MDX and learning on the go in my projects.

I need this grand total value to compare this to YTD value and set the rate based on that.

Year Month LY Pounds Current YearPounds Pounds YTD
2013 Jan 28,933 31,472 31,472
  Feb  29,796 28,546 60,018
  March 31,685 20,452 80,470
 Total90,41480,47080,470
      
In the example above, I need to compare 90,414 with  Pounds YTD for each month to calculate rate column in a calculated measure for my cube. If 90,414 > 31,472 for Jan then rate is 0.14 and so on...
 
 

Best Regards, Uma


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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