This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello,
I have the following simple table. How do you create a measure for RUNNING TOTAL that is based on date column? Thanks.
I will have a date slider.
For example, if I select January 3-5, I will see only this
Solved! Go to Solution.
Use this formula when calculating running total measure
Running Total = Calculate ( SUM('sample'[QTY]), FILTER( ALL('sample'[Date ]),'sample'[Date ] <= MAX('sample'[Date ])))See the sample below for a visual with running total column
Hope it helps.
Although I'm quite confdent with DAX I still use the power BI built in measure for running totals. You can't go wrong. Instead of selecting measure, select 'New Quick measure' a few items down. Go down to Running Total on the list. add the desired columns - manipulate the DAX where required. I often add other variables which only start showing data when it's revelant etc.
Are you summarizing the QTY column ?
This is with out QTY summarised
This is with
So recheck what is happening to your fields.
Share sample pbix file to help you.
Use this formula when calculating running total measure
Running Total = Calculate ( SUM('sample'[QTY]), FILTER( ALL('sample'[Date ]),'sample'[Date ] <= MAX('sample'[Date ])))See the sample below for a visual with running total column
Hope it helps.
Hi @HaneeshaThan ,
Thank you very much for your quick reply. Unfortunately the formula does not work. I am getting the same Running Total as the QTY. Any ideas? Thanks again.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 22 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 25 | |
| 24 | |
| 20 | |
| 19 | |
| 19 |