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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I suspect this may have to be done in powerquery
I currently have
a b
| 1 | x |
| 1 | y |
| 2 | x |
| 2 | z |
| 3 | z |
| 3 | w |
and would like to create a new table that looks like this
1 | 2 |
| 2 | 1 |
| 2 | 3 |
| 3 | 2 |
I would appreciate any assistance on this, thanks.
Solved! Go to Solution.
Hi @Anonymous ,
You can create a calculated column as below to get it, please find the details in the attachment.
Best Regards
@Anonymous , The value of 2 as 1 and 3 does not seem fine to me.
Group by in power query you can try
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |