Hi mates,
I would like to calculate/fill the fields- 'River' with the values either 'Yes' or 'No' depending on the maximum value in the field named 'AdjRiverLe' and the field named 'ID'. See the image here.
The rule will be:
Yes= The maximum value in the field 'AdjRiverLe' group by the field 'ID'
No= the rest of the values in the field 'AdjRiverLe'
For example, the ID 1 has three individual rows with three different values in the field- 'AdjRiverLe '. I would like to select the row which belongs to the maximum values in the field - 'AdjRiverLe' and fill the field 'River' with 'Yes'.
I reckon the code block option would work.