Using calculate field to sum values based on two columns, number and string

158
1
03-31-2021 02:37 PM
MarilynLong1
New Contributor

Hi,

I'm trying to use calculate field to add values to my column called Trail Length. I want to populate this column by adding together the trail sections that are part of the same trail.

Example:

Trail          Section Length      Trail Length

Trail A          .5                         (script that will add up the values in section length for Trail A, etc)

Trail A          .2

Trail B          5

Trail B           .3

Trail B           1

0 Kudos
1 Reply
DanPatterson
MVP Notable Contributor

Summary Statistics (Analysis)—ArcGIS Pro | Documentation does it for you.  See the code sample to call it


... sort of retired...