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
timknox
Helper II
Helper II

Running Total Problem

Hi,

I am trying to create a stacked graph of a running total, but I am having great problems.

 

What i am trying to get is a graph like this:

 

timknox_0-1600343866350.png

but i am getting this:

timknox_1-1600343901530.png

 

I have a sample PBIX file here:

 

Grateful if someone can help me please

1 ACCEPTED SOLUTION

Hi @timknox ,

 

Please try this:

 

Create a new date table:

Date = CALENDARAUTO()

Create a measure:

 

Running Total = 
CALCULATE(
	SUM(Sheet1[Value]),FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date])))

 

v-xuding-msft_0-1602142827873.png

 

 

Best Regards,
Xue Ding
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

3 REPLIES 3
amitchandak
Super User
Super User

@timknox , try a measure like

 

CALCULATE(
	SUM(Sheet1[Value]),FILTER(ALL(Sheet1),Sheet1[Date]<=MAX(Sheet1[Date])))

 

In case you want all only date. Move that to a separate table or use date table

 

CALCULATE(
	SUM(Sheet1[Value]),FILTER(ALL(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

 

thanks for this but i tried that as per the example PBIX.....

 

any ideas?

Hi @timknox ,

 

Please try this:

 

Create a new date table:

Date = CALENDARAUTO()

Create a measure:

 

Running Total = 
CALCULATE(
	SUM(Sheet1[Value]),FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date])))

 

v-xuding-msft_0-1602142827873.png

 

 

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

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.