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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
chakrared
Regular Visitor

Unique values based on distinct values in a column

I have a problem where I need to generate a unique value for each unique value in a column. The column has throusands of rows and hundreds of unique values.
EG

Column A (text)Desired column
value aUNIQUE 1 
value bUNIQUE 2
value cUNIQUE 3 
value cUNIQUE 3 
value dUNIQUE 4 
value a etc....UNIQUE 1 

I stress again there are two many values to manually assign a unique value.

Any help really appreciated. Totally stuck.

1 REPLY 1
harshnathani
Community Champion
Community Champion

Hi @chakrared ,

 

Please check this article which enables you to group similar values and generate an index using Power Query.

 

https://www.howtoexcel.org/power-query/grouped-serial-numbers-with-power-query/

 

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

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.