Forum Discussion
Help with cumulative total
- 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.
afrerichs what measure you have tried so far?
You should be using date dimension in your model and then it will be super easy with the measure below:
RT =
CALCULATE ( SUM ( Table[Vacc Column] ),
FILTER( ALL ( 'Date Table'[Date] ),
'Date Table'[Date] <= MAX ( 'Date Table'[Date] )
)
)
check the playlist on my YT channel about the importance of date dimension in your model https://youtube.com/playlist?list=PLiYSIjh4cEx2FkuGkngYruS0wm8MYFsoi
✨ 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.
- afrerichs3 years agoFrequent Visitor
Thank you, I have tried something similar! Here's what happens when I use your DAX calculation:
The RT column isn't actually a running total.
The Date column I used is from a date table that looks like this:
What am I doing wrong?