Forum Discussion
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 Number | Value |
| 1 | 174 |
| 2 | 294 |
| 3 | 118 |
| 4 | 222 |
| 5 | 399 |
| 6 | 126 |
| 7 | 110 |
| 8 | 164 |
| 9 | 69 |
| 10 | 131 |
| 11 | 262 |
| 12 | 149 |
| 13 | 337 |
| 14 | 188 |
| 15 | 315 |
9 Replies
- AnonymousNot 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.
- Ashish_MathurSuper User
- drrai66Resolver I
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 have
But I need above chart to be like this which I have in Tableau
- sevenhillsSuper User
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