Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hpatel24779
Helper II
Helper II

Create a record number for each person id

Hi All,

 

Not sure if this is possible but i have tried using index but not what i need.

 

To put it simple. i want to create a new column and give it a record number for each id. The record number will start from 0001 to 1300 if i have 1300 unique people.

 

So example of what i need:

 

Person  IDRecord Number
123450001
466580002
10600003
179610004
1540005
21650006

 

Any help is deeply appreciated

 

kind regards

 

hetal

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @hpatel24779 ,

 

Your effects can be realized in Power Query.

 

First, create an index column starting at 1.

 

Then, create a custom column using the following formula.

Text.PadStart(Text.From([Index]), 4, “0”)

vhuijieymsft_0-1736386588161.png

 

Delete the original index column.

 

The final visual effect is shown below:

vhuijieymsft_1-1736386588164.png

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @hpatel24779 ,

 

Your effects can be realized in Power Query.

 

First, create an index column starting at 1.

 

Then, create a custom column using the following formula.

Text.PadStart(Text.From([Index]), 4, “0”)

vhuijieymsft_0-1736386588161.png

 

Delete the original index column.

 

The final visual effect is shown below:

vhuijieymsft_1-1736386588164.png

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.