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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Cumulative sum and instant value at the same chart

I'm trying to create a chart just like the chart below, where I should have the total by day (columns) and the instant value of a variable along the day (line) at the same plot.

gasilva8_0-1667909595851.png

I'm able to create a cumulative bar just by setting the EndDate column at a bar chart to show the specific type of interval.

gasilva8_1-1667909795269.png

But I'm not able to set "Date Hierarchy" (for column chart) and "EndDate" (for line chart) formats for the same X axis (Or there is a way to do that?). I think that should solve my problem.

gasilva8_2-1667909935100.png

I tried to create a measure to sum values by day and then set that measure as my column chart, but didn't get the result I was expecting. What should I do?

Thank you!

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You should date the table with the required columns. and use that period from date table on axis .

 

Use measure like 

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

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

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

Hello @amitchandak. Thank you for yor reply.

I've tried that, but this is what I got.

gasilva8_0-1667916384135.png

Actually I want to get the total per day, instead of cumulative sum. 

The chart example I posted was created overlapping two charts. I'm trying to do the same using just one "line and stacked column" chart.

gasilva8_1-1667916453135.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.