Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I am trying to create a running total for the sum column by date for the below table. How can I accomplish this by creating a measure?
| Date | Type | Spend |
| 7/27/2020 | EPL | 1000 |
| 7/27/2020 | GSCS | 1500 |
| 7/27/2020 | EPL | 3000 |
| 7/27/2020 | EPL | 2000 |
| 7/28/2020 | GSCS | 1200 |
| 7/28/2020 | GSCS | 1400 |
| 7/282020 | EPL | 900 |
| 7/29/2020 | GSCS | 750 |
| 7/29/2020 | EPL | 1200 |
| 7/29/2020 | GSCS | 1400 |
Solved! Go to Solution.
@dw700d ,
Try this:
Thank you all for your prompt responses
@dw700d , Try with date table
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,date[date])))
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=max(Sales[Sales Date])))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...
Appreciate your Kudos.
Hi @dw700d
Try this measure
RuningTotal =
VAR selectedDate = SelectedValue(Table[Date])
VAR FilteredTable = Filter(
All(Table)
, Table[Date] <=selectedDate
)
Return Sumx(filteredTable, Table[Spend])Hope this helps.
Thanks
@dw700d ,
Try this:
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 49 | |
| 33 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 85 | |
| 70 | |
| 38 | |
| 28 | |
| 25 |