Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I have tried using index but not what i need. I want to create a new column with a record number starting from 0001 to 1300 if i have 1300 unique people in my data. For each id the record number increases by 1.
Example of what i require:
| Person ID | Record Number |
| 56463 | 0001 |
| 46979 | 0002 |
| 1234 | 0003 |
| 69956 | 0004 |
| 69956 | 0004 |
| 4692 | 0005 |
| 4692 | 0005 |
| 15652 | 0006 |
i will ensure my data is sorted by person id to be on safe side.
Is this achievable?
kind regards
Hetal
Solved! Go to Solution.
Hi @hpatel24779
Something like this?
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi @hpatel24779
Something like this?
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
I don't suppose you are using the online version...
https://learn.microsoft.com/en-us/power-query/rank-column
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 46 | |
| 42 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |