Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Rolling SUm

Hi, I have some issue in calculating the rolling Sum Jan 1 feb 2 Mar 3 Apr 4 May 5 i need dynamic cummulative total based on slicer (Month) selection for example if Feb...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    Try to create the following measure.

     

    Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Date]<=MAX('Table'[Date])))

     

    Sample data is as follows. A date field is required.

    Below are the results.

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.