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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Cumulative line chart in combo chart

Hi there

 

I currently have a combo chart that looks like this:

 
 
 

Capture.PNG

 

The chart is based on a measure "Hours Saved" and shows values for each transaction date.

 

I would like to additionally have a line chart added that shows the cummulative value of hours saved up to that date.

 

Something like this:

Capture.PNG

 

Anyone know how this can be done?

Keep in mind that i do not have the values for hours saved each day in a table but it is made using a measure.

 

Thanks

1 ACCEPTED SOLUTION
5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous 

Create a cumulative measure like this

 

Cumm = CALCULATE(SUM(Table[hours]),filter(date,date[date] <=maxx(date,date[date])))
Cumm = CALCULATE(SUM(Table[hours]),filter(date,date[date] <=max(Table[Date])))

 

And use in combo chart like line and bar or line and clustered

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

@amitchandak 

 

Capture2.PNG

Using your solution seems to just give the same result without accumulation.

 

My "Hours Saved" measure as calculated like this:
Hours Saved = SUMX(QueueDB; RELATED(queuesROI[timeValueMin]))/60
 
I tried to calculate it this way:
Cumm = CALCULATE([Hours Saved];FILTER(QueueDB;QueueDB[transactionEND] <=MAX(QueueDB[transactionEND])))
Anonymous
Not applicable

Hi @Anonymous ,

 

Refer the formula below and see if it helps.

Measure = CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[date]))

Measure 2 = CALCULATE([Measure],FILTER(ALL('Table'),'Table'[date]<=SELECTEDVALUE('Table'[date])))

 Here's the result about my sample data.

4.PNG

If this not help, please share some sample data if you don't have any Confidential Information.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Anonymous
Not applicable

@Anonymous 

 

How do I upload a data sample here for you to see?

Anonymous
Not applicable

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.