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

Calculating the total for previous month

$
0
0

Hello,

I need to create a measure that would be the sum of the previous month. And we need to see this number everyday. 

Lets say we have [Measure].[X] .  We drag the dates for December 2012 ( all dates from time dimension). For all these days we should have the total for month of November. 

How can we do this? 

I had a filter called previous month, but then when i drag date attribute, it gets broken down for each date.

I tried lag function for month. However, for this i need to drag month attribute and doesn't work well with date attribute

Please help. Please let me know how the code should look. I am doing this in calculations tab of SSAS and not management studio.

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>