HOW TO
Features in a geodatabase feature class have a system-generated field for SHAPE_Length. However, there is no system-generated field for the cumulative length values. Therefore, a new field must be created and a Field Calculator expression used to get the correct cumulative length values. The following is an example of a cumulative sum being applied:
| Feature | Individual Length | Cumulative Length |
| 1 | 10m | 10m |
| 2 | 15m | 25m |
| 3 | 5m | 30m |
| 4 | 25m | 55m |
| 5 | 10m | 65m |
Note: The name must not contain spaces.


Note: Ignore the warning that appears and click YES to close the dialog box.
cummulativeLength = 0 def cummulativeValue(increment): global cummulativeLength cummulativeLength += increment return cummulativeLength
cummulativeValue(!SHAPE_Length!)

Article ID: 000014432
Get help from ArcGIS experts
Start chatting now