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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
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.