I've got a dataset of buildings roof segments in shapefiles. I need to sequentially number the roof segments from 1 to n of each building.
Is there a way to do it with the QGIS field calculator?
Actual:
Expected:
It's pretty similar to an ArcPy question: Auto increment by group in ArcGIS ModelBuilder


