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

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Apr 12, 2020 at 18:16
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. Commented Apr 12, 2020 at 20:25
  • 1
    Just use the summary statistics tool the case field being your name field. Commented 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.

answered Apr 12, 2020 at 20:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.