3

I have a table of attributes with polygons, from the area data I sort from largest to smallest, and when using the command @row_number, he writes the order in which the polygons were created. I want to know how to change the classification of features to the size of the area and then make the count from largest to smallest?

enter image description here

1 Answer 1

6

You can use use the Field Calculator to create a new field using the size of the polygons to sort your objects.

This is the expression that you can use:

array_find(array_sort(array_agg("field_name")), "field_name")+1

In your case it will be:

array_find(array_sort(array_agg("ha")), "ha")+1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.