Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I'm struggling to create a Running Total Calculation that sums up the value of the last date (upto the current date) of each preceeding month.
Here are my workings so far
The RT for the row Start of Month 01/03/2020 and Start Week 07/03/2020 - should be 1167
The RT for the row Start of Month 01/04/2020 and Start Week 07/03/2020 - (should be 1167 + last date of March, not beyond current date = 1167) = 2333
The RT for the row Start of Month 01/04/2020 and Start Week 27/04/2020 - (should be 1417+ last date of March, not beyond current date = 1167) = 2584
The RT for the row Start of Month 01/05/2020 and Start Week 07/03/2020 - (should be 0+ last date of April, not beyond current date = 1167 + last date of March, not beyond current date = 1167) = 2333
The RT for the row Start of Month 01/05/2020 and Start Week 27/04/2020 - (should be 2917+ last date of April, not beyond current date = 1417 + last date of March, not beyond current date = 1167) = 5501
The RT for the row Start of Month 01/05/2020 and Start Week 16/05/2020 - (should be 4345+ last date of April, not beyond current date = 1417 + last date of March, not beyond current date = 1167) = 6929
I've looked at these articles:
https://www.sqlbi.com/articles/using-keepfilters-in-dax/
https://www.sqlbi.com/articles/filter-arguments-in-calculate/
https://www.sqlbi.com/daxpuzzle/last-date/
https://www.sqlbi.com/articles/order-of-evaluation-in-calculate-parameters/
But am still struggling. Pls help!
Sachin
Hi @Anonymous
Based on your screen shot you created a calculated column instead of a measure. Use the same code as a measure (put the data including the measure into a table visual to see the results) and see if that fixes it.
Hope this helps
David
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |