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
Hello I have to make the cummulative production of different productions at the same periods like this:
| Year | Product | Production | Cummulative Production |
| 1 | |||
| 1 | |||
| 1 | |||
| 1 | A | 100 | 100 |
| 2 | |||
| 2 | |||
| 2 | |||
| 2 | A | 200 | 300 |
| 3 | |||
| 3 | |||
| 3 | A | 300 | 600 |
| 1 | |||
| 1 | |||
| 1 | |||
| 1 | B | 20 | 20 |
| 2 | |||
| 2 | |||
| 2 | |||
| 2 | B | 30 | 50 |
| 3 | |||
| 3 | |||
| 3 | B | 40 | 90 |
Can you help me?
Solved! Go to Solution.
Create a measure
Measure = CALCULATE(SUM('Table'[Production]),FILTER(ALLEXCEPT('Table','Table'[Product]),'Table'[Year]<=MAX('Table'[Year])))
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.
Create a measure
Measure = CALCULATE(SUM('Table'[Production]),FILTER(ALLEXCEPT('Table','Table'[Product]),'Table'[Year]<=MAX('Table'[Year])))
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.
this article contains a DAX-solution as well as an M-solution for the query editor:
https://www.thebiccountant.com/2018/09/30/memory-efficient-clustered-running-total-in-power-bi/
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Thank You but I couldn´t finde the answer, I need a dax formula that can hep me to do this
Why do you post your question in the Power Query-section then?
Googling "Power BI running total" or "Power BI cumulative total" returns tons of articles and threads. And as you haven't posted anything specific about your request, I'd recommend you start there and come back with specific problems if theses posts cannot help you.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
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 |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 4 | |
| 2 |