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

Next 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

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.