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
Dirk_Kuypers
Frequent Visitor

running total

Hello,

 

I am trying to create a running total for my PPT (Potential Production Time) for different production lines for eacht month.

 

There are 5 lines and for each line a PPT for each month.

I want a CumPPT for each line. 

LineYearMonthPPTCumPPT
120191452452
120192502954
1201933451299
2201917878
22019298176
220193101277
320191345345
320192554899
3201932341133

 

I created a column  CumPPT but I cannot get the calculation.

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

Hi @Dirk_Kuypers ,

 

Maybe you can do like this:

 

Total_running = 

CALCULATE(
    SUM(Sheet1[PPT]),
    FILTER(
        Sheet1,
        Sheet1[Month] <= EARLIER(Sheet1[Month]) && Sheet1[Line] = EARLIER(Sheet1[Line])
    )
)

 

b5.PNG

 

Best regards,
Lionel Chen

 

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

1 REPLY 1
v-lionel-msft
Community Support
Community Support

Hi @Dirk_Kuypers ,

 

Maybe you can do like this:

 

Total_running = 

CALCULATE(
    SUM(Sheet1[PPT]),
    FILTER(
        Sheet1,
        Sheet1[Month] <= EARLIER(Sheet1[Month]) && Sheet1[Line] = EARLIER(Sheet1[Line])
    )
)

 

b5.PNG

 

Best regards,
Lionel Chen

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Solution Authors