Excel Cumulative Sum

Ubaid ur Rahman

I need to cumulate incrementing values down.

Please see the attached file for better explanation.


Thank you in advance!

@Sergei Baklan 

9 Replies

Hi @Ubaid ur Rahman ,


If to repeat your formula to make it more universal when


Or you mean something else?

Hi Baklan,
thanks for your quick reply. I got this but what the real problem is how to perfrom this action in Pivot table. I have a month coulumn form 1 to 12. Then in second column I have an average of some numbers repeating monthly. in the third I want to perform the above action.

@Sergei Baklan 


please see the picture in attachment. I want to perform that incrementing cummulative action in pivot in the red marked area.


Thanks in advance

For cumulative sum, the formula is:
For cumulative average, as what it seems you need, the formula is:

@Ubaid ur Rahman , so, like in your Excel file example but within PivotTable, correct?

@Sergei Baklan yes! as shown in the picture that how to simply apply that above formula to that column.

@Ubaid ur Rahman and how do you pivot first column, what gives 2.27 in Grand total?

@Sergei Baklan I don't need grand total. It comes up auto. So if possible without Grand total.


@Ubaid ur Rahman , I tried to do that on your data model, but didn't catch what do you calculate in it. Thus emulate on the table


It is named as Range in data model, the measure will be

CumulativeCountDifd:=CALCULATE (
    SUM ( [Actual value] )/COUNTROWS(Range),
    FILTER ( ALLEXCEPT ( Range, Range[Year] ), Range[Month] <= MAX ( Range[Month] ) )

You may it in Power Pivot and result is in second sheet.

Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Edge insider Dev bypasses IE mode website list
HotCakeX in Enterprise on
4 Replies