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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
drrai66
Resolver I
Resolver I

Running SUM (LINE CHART)- Help Please

Hi Experts,

How I can Create a Running SUM LINE Chart with Week Number on X AXIS and Value on Y AXIS with Following Data. I Need a Formula which I can apply to my Similar Big Data set. 

Thanks in Advance

Deepak

WEEK NumberValue
1174
2294
3118
4222
5399
6126
7110
8164
969
10131
11262
12149
13337
14188
15315

 

1 ACCEPTED SOLUTION

Hi @drrai66,

 

My solution does exactly that.  What problem are you facing when downloading my file?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

 

Assuming your financial year end is 31/12, try my solution here.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

Actually, I could not access your Solution. Can you provide the formula. As you can see in the following view, I have the weekly values per week in Line graph, so now I want to accumulate them  the way you showed me in previous reply. so that values get added up and I get an Increasing Trend.  I have got these values by COUNTING and not SUMMING. I have to do COUNTING to get these values per week and then do a Running sum of them.

Thanks for Help again

Deepak

This is what I haveThis is what I have

But I need above chart to be like this which I have in Tableau

 

Value running.PNG

 

Hi @drrai66,

 

My solution does exactly that.  What problem are you facing when downloading my file?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish

 

For some reasons when we click the link first time it wont work (in chrome) ... Again you click the same link it works ... I tested twice by closing chrome browser and reclicked the link ...

just FYI. Not that your file is problem, the download link wont show up first time and refresh or clicking the same link it shows 🙂

 

Thanks 

Hi Ashish,

Got it finally...

Thanks a lot

Deepak

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

On a (non) related topic, check this link. The November 2017 update has this built-in feature ... https://powerbi.microsoft.com/en-us/desktop/?WT.mc_id=Blog_Desktop_Update 

 

In the options, enable quick measures & restart power bi. Add new quick measure, running total ... 

 

Thanks

Hi Sevenhills,

Thanks  a lot for this..I am still a newbie to Power BI, but you showed me how to do it. I could get it.

Appreciate

Thanks

Deepak

Anonymous
Not applicable

What about a measure like (just replace the table name):

Running Sum = VAR WeekNum = MAX('YourTable'[WEEK Number])
RETURN

Calculate(
	SUM('YourTable'[Value]),
	ALL('YourTable'),
	'YourTable'[WEEK Number] <= WeekNum
)

 

 

EDIT:  Now just put this on a Line graph with this measure as the value, and week number as the Axis. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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