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
Hi, seeking for some help.
I have a database with thousands of items and their sell prices from many competitors in different locations (similar to the below table).
I was wondering how to trasnform it in power query to have a single line for each item and the competitor prices on columns (similar to the below).
It is easy to do with a Pivot Table, but I do not know how to do it in Power Query.
Thanks in advance!
TP
Solved! Go to Solution.
Power Query also have a pivot function
=Table.Pivot(YourPreviousStepName,List.Distinct(YourPreviousStepName[Competitor]),"Competitor","Price")
Power Query also have a pivot function
=Table.Pivot(YourPreviousStepName,List.Distinct(YourPreviousStepName[Competitor]),"Competitor","Price")
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 7 | |
| 6 |