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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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])))

 

 

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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