How can I add ranking (start from 0 or 1) in a new column after sorting the table in the shapefile based on an attribute of choice?
Obviously I can sort the chosen attribute in ascending and descending order, but once that is done, can I create an ID in a new column that starts from 0 in order to rank them?
I tried $id and $rownum but they just return the IDs that are already part of the table in the shapefile.
أكثر...
Obviously I can sort the chosen attribute in ascending and descending order, but once that is done, can I create an ID in a new column that starts from 0 in order to rank them?
I tried $id and $rownum but they just return the IDs that are already part of the table in the shapefile.
أكثر...