I'm working with map of plants in garden. This garden is divided into about 40 sections. Plants of one species have their number for example every Scots pine is 12 and every Common oak is 15 in field "Inventory". I want to number every plant of each species on each section in column "RecNum", for example:
This tabel is "hand-made", how to do it automatically in field calculator?


qgis-2.18tag. Are you still bound to this version? If you have switched to QGIS3, thenAdd autoincremental fieldtool would do what you need. – Kazuhito Jan 07 '20 at 10:11