Forum Discussion
Running total to date
- 6 years ago
If the date increases daily, you could create calculated columns below:
earlier = CALCULATE ( SUM ( 'Table'[Running Value] ), FILTER ( 'Table', 'Table'[Country] = EARLIER ( 'Table'[Country] ) && 'Table'[Date] = EARLIER ( 'Table'[Date] ) - 1 ) ) daily total = [Running Value]-[earlier]As tested, if i understand you correctly, your second visual has some wrong data due to teh calculation rule.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - 6 years ago
Thank you so much, it work out to perfection.
- 6 years ago
- 6 years ago
This solution was created using Power Query as you have posted your question in PQ section, the script dose Include the M code in Added Column step of the script.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Hi Mariusz,
Thanks for the below. This is perfect, but how did you do this, can you share the measure.
This solution was created using Power Query as you have posted your question in PQ section, the script dose Include the M code in Added Column step of the script.
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
- AjithTravvise6 years agoHelper II
Thank you so much....