Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
OscarSuarez10
Helper III
Helper III

Cummulative production of different products at the same periods

Hello I have to make the cummulative production of different productions at the same periods like this:

YearProductProductionCummulative Production
1   
1   
1   
1A100100
2   
2   
2   
2A200300
3   
3   
3A300600
1   
1   
1   
1B2020
2   
2   
2   
2B3050
3   
3   
3B4090

Can you help me?

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @OscarSuarez10 

Create a measure

Measure = CALCULATE(SUM('Table'[Production]),FILTER(ALLEXCEPT('Table','Table'[Product]),'Table'[Year]<=MAX('Table'[Year])))

6.png

 

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.

View solution in original post

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @OscarSuarez10 

Create a measure

Measure = CALCULATE(SUM('Table'[Production]),FILTER(ALLEXCEPT('Table','Table'[Product]),'Table'[Year]<=MAX('Table'[Year])))

6.png

 

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.

ImkeF
Community Champion
Community Champion

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors