Nice, but you have a couple of extra columns that you don’t need. Once you have your Unique items, then you only need two more columns:
- the equivalent of your begin column, except start the numbering at zero
- a single value column, that takes “begin” from start, from the unique column.
Here is a contrived example to show what I mean: