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
Anonymous
Not applicable

Running Total 4th Line

I have a table shown Below:

 

jamescosten_0-1658243210667.png

 

I need to have a 4th line that takes a cumulative total over the months. So February shows the total for Jan and Feb, March Shows Jane Feb & March etc. I have tried the Running Total Function but it doesnt seem to do what i want.

 

This is the Filters i Have also:

 

jamescosten_1-1658243311889.png

It is taking a sharepoint list and filtering to 2022 only. The Choice field on the list is for Closed and Open NCR's. i then have a difference line between the two to show backlog.

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

Hi @Anonymous ,

 

Please try the measure.

 

Measure = 
CALCULATE (
    SUM ( 'Table'[Backlog] ) + SUM ( 'Table'[Closed] )
        + SUM ( 'Table'[Open] ),
    DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), -2, MONTH )
)

vkkfmsft_0-1658472069737.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the measure.

 

Measure = 
CALCULATE (
    SUM ( 'Table'[Backlog] ) + SUM ( 'Table'[Closed] )
        + SUM ( 'Table'[Open] ),
    DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), -2, MONTH )
)

vkkfmsft_0-1658472069737.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Anonymous , usally we have this kind of measure for running total

 

Cumm = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

 

Cumm = CALCULATE(SUMX(Values('Date'[Month]), [Measure]) ,filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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