Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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")
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 7 |