Forum Discussion
Rolling Sum for a Measure
- Anonymous9 years ago
Mounika1,
Create measure using the DAX below.
Running Sum = SUMX(FILTER(ALLSELECTED(Excel[Time Period]),Excel[Time Period]<=MAX(Excel[Time Period])),[Measure])
Regards,
Lydia
Hi Mounika1,
We ussually use DATESBETWEEN function in Calculate to get values for rolling period.
If you can provide some sample data and exact problem that you are trying to solve, it will help
Thanks,
Sumit
- Mounika19 years agoFrequent Visitor
I have measure created for some time periods based on the max date. Now for that Measure i have to create the rolling Sum.
Below is the formula used to create the measure.
Measure = calculate(sum(Excel[Value]), Filter(ALL(Excel[DAY]),Excel[DAY]=Final[MaxDate]))/1000 -0.01*(calculate(sum(weights[weight])))* calculate(sum(Excel[Value]), Filter(ALL(Excel),Excel[PERIOD]=calculate(max(Excel[PERIOD])).