Skip to main content
3 of 3
added 83 characters in body
Taras
  • 34k
  • 4
  • 73
  • 148

Variant 1: In the order of the features

Create a new field using the Field Calculator and this expression:

(@row_number - 1)/1000

This creates intervals of 0.001. Change the number of 1000 to create other intervals. This creates increasing values in the order the features are saved (the order in which they were initially created).

Variant 2: In an order based on attribute values

If you want to get the numbers based on another sort order, based on the content of an attribute field (here: id_new), use this expression:

(array_find(array_sort(array_agg(id_new)), id_new))/1000

Left: variant 1, right: variant 2
enter image description here

Babel
  • 74.9k
  • 15
  • 87
  • 227