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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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")
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 6 | |
| 6 | |
| 6 |