Forum Discussion

RyanLeeMc's avatar
RyanLeeMc
Frequent Visitor
4 years ago
Solved

Running total to not start from 0 when filtering table by specific date

Hello,   I am trying to create a line graph that shows the running total of revenue received. (please see below)   In the above instance it is doing exactly what I want until I filter the g...
  • parry2k's avatar
    4 years ago

    RyanLeeMc not sure what DAX expression you are using for running total but this will take care of it:

     

    RT Sales = 
    CALCULATE ( [Sales], FILTER ( ALL ( 'Calendar'[Date] ), 'Calendar'[Date] <= MAX ('Calendar'[Date] ) ) )

     

    ✨ 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 efforts 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.