Select to view content in your preferred language

Arcade expression to select the maximum value from identical IDs and assign the related attribute data.

470
0
10-17-2023 08:39 AM
Labels (1)
BrennonPeterson
Emerging Contributor

I have a feature where I have three main fields of interest: ID, Group Name, and Area

Each ID field has different group names associated with it, and each having a different area. I want to calculate a field using arcade to return the Group Name for the ID with the maximum area. I posted a picture below demonstrating what the table looks like. I've tried a few different things, with no success, and looking for some guidance. Kind of a newbie to coding in arcade.

huc12 is the ID

Screenshot 2023-10-17 093652.png

0 Kudos
0 Replies