Hello everyone.
Need a help here.
I want to create an indexing list as follows:

The goal is that everytime the value in the reference column changes, the RecordID restarts back to 1.
Anyone can give some suggestions on how to achieve this?
Thank you!