Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
i need to insert a column index matching the value of other column
Ex:
Column to match --> Index
A 1
B 2
C 3
C 3
B 2
D 4
A 1
A 1
Many thanks
Solved! Go to Solution.
Hi @AlessandroBet - you can create a calculated column as like below:
Proud to be a Super User! | |
thank you for your fast replay but i want add indesx with DAX code
Hi @AlessandroBet - you can create a calculated column as like below:
Proud to be a Super User! | |
It blocks here --> RETURN LOOKUPVALUE( Soert_Org[Index]
how can i attach the pbx file?
Hi @AlessandroBet ,
Using Power Query you can use any of the solutions provided in the video below:
https://www.youtube.com/watch?v=_PBX3RPXxHw
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @AlessandroBet - You can create an Index Column based on Unique Values using Power Query in Power BI.
Steps in Power Query
Open Power Query Editor (Transform Data).
Remove Duplicates on the column you want to match:
Select the column (e.g., Column to match).
Click Remove Duplicates (under Home tab).
Add an Index Column:
Go to Add Column → Click Index Column (Choose Start from 1).
Re-merge with Original Table:
Go to Home → Click Merge Queries.
Merge the original table with the deduplicated table using Column to match.
Expand the merged table to bring in the Index column.
output is at soert_org
Please find the attached pbix.
Proud to be a Super User! | |
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 27 | |
| 25 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 54 | |
| 46 | |
| 38 | |
| 30 | |
| 21 |