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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 a | UNIQUE 1 |
| value b | UNIQUE 2 |
| value c | UNIQUE 3 |
| value c | UNIQUE 3 |
| value d | UNIQUE 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.
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)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 18 | |
| 16 | |
| 15 | |
| 9 |