AnsweredAssumed Answered

Python loop script to calculate cumulative sum based on another attribute being the same

Question asked by clintoncooper on Mar 21, 2016
Latest reply on Mar 21, 2016 by clintoncooper


I am looking for a script that will calculate the cumulative sum of say population (based on a presorted table that I have created) as long as the variable of ID is the same.  So it might look like

IDPOPCUMPOP
1100100
1250350
1150500
2100100
2500600
3150150
3600750
3100850
31501000

this:

Outcomes