Hi,
in the Field Maps form, I'm trying to calculator a new ID value based on a selected grid and the MAX value (+1) in the layer. How can I apply the filter in the expression correctly?
Var GRID_ID_SELECT = AA
Var GridFilter = Filter($featureset, ‘GRID_ID = GRID_ID_SELECT')
Var NEW_ID = Max($feature.ID) + 1
return NEW_ID
| Grid_ID | ID |
| AA | 1 |
| AA | 2 |
| AA | 3 |
| BB | 11 |
| BB | 12 |
| BB | 13 |
Thew NEW ID value should be 4.
(I'm new to Arcade and trying to figure this out, i have read some samples but didn't achieve my goal)
million thanks!!!
W