Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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