I have this data where I want to identify all the sequential numbers across different rows and give them a unique reference
For eg. the few lines from the data I have
| ID | Amount |
| 2515669 | 429 |
| 2515670 | 86 |
| 2515671 | -515 |
| 2515894 | 170 |
| 2515895 | 34 |
| 2515896 | -204 |
| 2515908 | 80 |
| 2515909 | 16 |
| 2515910 | -96 |
| 2515916 | 150 |
| 2515917 | 32 |
| 2515918 | -192 |
| 2515919 | 5 |
| 2515920 | 5 |
| 2515146 | -5 |
| 2515147 | 5 |
Desired Result
| ID | Amount | Unique Reference |
| 2515669 | 429 | 1 |
| 2515670 | 86 | 1 |
| 2515671 | -515 | 1 |
| 2515894 | 170 | 2 |
| 2515895 | 34 | 2 |
| 2515896 | -204 | 2 |
| 2515908 | 80 | 3 |
| 2515909 | 16 | 3 |
| 2515910 | -96 | 3 |
| 2515916 | 150 | 4 |
| 2515917 | 32 | 4 |
| 2515918 | -192 | 4 |
| 2515919 | 5 | 4 |
| 2515920 | 5 | 4 |
| 2515146 | -5 | 5 |
| 2515147 | 5 | 5 |
Please can someone help !!