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
Justas4478
Post Prodigy
Post Prodigy

Index repeating employee names to create Employee ID

Hi, I am trying to add new column to my table that serve as Employee ID since there is no in the data.

The only problem is that name repeats multiple times because of data. I know how it can be done if I dublicate table and remove other columns and dublicates.
But I was hoping it can some how be done without needing to do that. Maybe some conditional column.

Thanks.

Justas4478_0-1694606869965.png

 

1 ACCEPTED SOLUTION
mussaenda
Super User
Super User

Hi @Justas4478 ,

 

you can group your data by Employee name, and before expanding, add an index column. then expand.

 

mussaenda_0-1694609939184.png

 

I attached a sample file

View solution in original post

1 REPLY 1
mussaenda
Super User
Super User

Hi @Justas4478 ,

 

you can group your data by Employee name, and before expanding, add an index column. then expand.

 

mussaenda_0-1694609939184.png

 

I attached a sample file

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.