Forum Discussion

SparkD's avatar
SparkD
New Member
1 year ago
Solved

Running Total Keeps resetting

Im currently using the following DAX:   Running Sum = CALCULATE([Planned Count],DATESYTD('Month Ending'[Month Ending]))   Problem is it calculates fine within one year, but resets every new cale...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Thanks for the reply from bhanu_gautam and PBIViz_2024.

     

    Hi SparkD ,

     

    If you want to achieve the effect that the months beyond the current month are blank, a measure can be written for filtering.

     

    Here is a simple example:

    1.Create a table:

    2.Create a measure:

     

    Measure = IF(MAX('Table'[Month])<=MONTH(TODAY()),1,0)

     

    3.Drag the measure to the filter pane, then set the condition to 1:

    4.The effect is as follows:

    Best Regards,
    Zhu
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!