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