Forum Discussion
Running total on specific year
- 5 years ago
Anonymous try this:
Running Total = CALCULATE( COUNT(t_divers_sinistres[sinistre_numero]), DATESYTD(Calendar[Date]) )Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS 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.⚡
Anonymous make your calendar table as a date table, you can check my blog post here and change your measure like this:
Running Total =
CALCULATE(
COUNT(t_divers_sinistres[sinistre_numero]),
FILTER
(ALLSELECTED(Calendar),
Calendar[Date]<= MAX(Calendar[Date])))
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS 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.⚡
- Anonymous5 years agoNot applicable
Thank you parry2k,
But how I can restrict this measure to a specific year ? I added a filter on the year after the
FILTER(ALLSELECTED(Calendar),Calendar[Date]<= MAX(Calendar[Date]))).and the running total starts from 2020 but doesn't stop in 2021. I obtained something like this.
Do you know why ?