I'm adding an id in QGIS with the function @row_number and it is adding the numbers descending, as you see it in the picture. But i need them exactly in the reverse order.
Asked
Active
Viewed 285 times
2
1 Answers
6
Try a formula like
TOTAL_NUMBER_OF_RECORD - @row_number
(you may adjust result by adding a -1 or +1 depending if you want to start from 0 or 1)
You may also want to have a look at the Sort and Number plugin :
This plugin adds a new field to an attribute table, where features are numbered depending on multiple sorting criteria.
J.R
- 16,090
- 1
- 19
- 52

$id? – Taras Mar 18 '21 at 17:04