I'm looking for a workaround or trick to calculate row_number function for more than 100 category in one step rather than do it manually for each category by QGIS.
Update: I have POIs layer and in sub_category field contains more than 100 values, I want to calculate row_ number for each this category automatically rather than one by one.
@row_numberthe same for all categories? Take a look into inrefactor fieldsas batch process or pyqgis solutions. – MrXsquared Sep 28 '21 at 11:23"BUILDING"with the fieldname of your category-field in the expression from the answer. That should do it. – MrXsquared Sep 28 '21 at 11:47