Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

How to get SUM of a measure before 5 months from current month in MDX

$
0
0

 Hi

I have a measure Amount and date hierarchy. I have either blank value for a given month or a valid value.

What a user wants to see when they filter 5 months date and drags on columns is, 

Fact Data 

Month               Amount         

09-01-2012          -10

08-01-2012          100

07-01-2012          45

06-01-2012          50

05-01-2012          -5

04-01-2012          16

03-01-2012          25

End Result should be

Sep       Aug       July       June  May

-10       100         45         50   ( -5 + 16 + 25...) 

Please let me know thanks.  


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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