Forum Discussion

Ragnarock1982's avatar
Ragnarock1982
Frequent Visitor
7 years ago
Solved

Rolling monthly total

Morning all,   I'm having an 'issue' with the rolling monthly total on my report.   Basically, I have a date slider and a Line & Stacked column chart. When I select dates from the slider the char...
  • v-lili6-msft's avatar
    7 years ago

    hi, Ragnarock1982 

    You could use this measure as below:

     

    New AA running total in Month = 
    CALCULATE(
    	SUM('Balances - Balance Sheet'[AA]),
    	FILTER(
    		ALLSELECTED('Calendar'),
    		ISONORAFTER('Calendar'[MonthNo], MAX('Calendar'[MonthNo]), DESC)
    	)
    )

     

    or 

    AA running total in Date = 
    CALCULATE(
    	SUM('Balances - Balance Sheet'[AA]),
    	FILTER(
    		ALLSELECTED('Calendar'[Date]),
    		ISONORAFTER('Calendar'[Date], MAX('Calendar'[Date]), DESC)
    	)
    )

    Result:

    Best Regards,

    Lin