Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |