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
All,
I need to create a running sum that is conditional based on multiple other fields. The running sum will need to run
This is the current calculated column that I have created
| Material | Plant | Delivery | deliver Date | Line | Planned Receipt | Running Sum |
| 10000 | 5700 | 203735000 | 12/15/2019 | 10 | 500 | 500 |
| 10000 | 5700 | 203735022 | 12/18/2019 | 10 | 700 | 1200 |
| 10000 | 5700 | 203736670 | 12/19/2019 | 10 | 200 | 1400 |
| 10000 | 5700 | 203736670 | 12/19/2019 | 20 | 300 | 1700 |
| 10000 | 5700 | 203736670 | 12/19/2019 | 30 | 500 | 2200 |
| 10000 | 5700 | 203765289 | 1/1/2020 | 10 | 5000 | 7200 |
| 10000 | 5700 | 203799999 | 1/1/2020 | 10 | 6000 | 13200 |
| 10000 | 8000 | 203735001 | 12/15/2019 | 10 | 6000 | 6000 |
| 10000 | 8000 | 203735004 | 12/16/2019 | 10 | 600 | 6600 |
| 20000 | 5700 | 123574568 | 12/15/2019 | 10 | 80000 | 80000 |
| 10000 | 5700 | 125487936 | 12/19/2019 | 10 | 5 | 80005 |
I'm not sure where I went wrong nor can I find a post with relatable content.
Solved! Go to Solution.
Hi @jersey417 ,
check this out.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
@jersey417 for time based calculations, it is recommended to add Date Table in your model and there are tons of post on how to add one and set relationship with this date table with your transaction table
And change your measure like this
Running Sum = (CALCULATE( SUM('Data V2'[Planned Receipt]), FILTER( All( DateTable (, 'Date Table'[date] <= MAX ('Data Table'[date]))))
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @jersey417 ,
check this out.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 131 | |
| 104 | |
| 61 | |
| 57 | |
| 55 |