0

How can I compare one field of a table to calculate another field? I have a table containing 'SL', 'Name' and 'Value' fields. I need to calculate the total value each name have. Example is shown in the picture below. It will be great, if it would be Python script.

enter image description here

2
  • Welcome to GIS SE. Thank you for taking the Tour. Coding questions here are expected to include code. We don't expect perfection, just an honest attempt to solve the problem.
    – Vince
    Apr 12, 2020 at 20:25
  • 1
    Just use the summary statistics tool the case field being your name field.
    – Hornbydd
    Apr 12, 2020 at 22:12

1 Answer 1

1

arcpy.Statistics_analysis(<in_table>, <out_table>, [['Name','SUM']]) will create a new table with the values you're looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.