Forum Discussion

afrerichs's avatar
afrerichs
Frequent Visitor
3 years ago
Solved

Help with cumulative total

I've looked at many, many posts for how to calculate a cumulative/running total and not a single solution worked for me.  I have a table that looks like this:      I want to calculate the r...
  • parry2k's avatar
    3 years ago

    afrerichs update the measure as below:

     

    RT Measure = 
    CALCULATE ( 
       SUM ( 'Monthly Flu Admin'[TotalVacc] ), 
       FILTER( 
          ALL ( 'Date Table'[Date] ), 
          'Date Table'[Date] <= MAX ( 'Date Table'[Date] )
       ),
       VALUES ( 'Date Table'[Flu Season] )
    )

     

     

    Follow us on LinkedIn and  to our YouTube channel

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.