We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
In PowerBI / Power query I'm looking to convert a single row of data to columns with the header row used as column one. The example below is just a mockup in Excel.
Original
Desired output
In the Powerquery editor I have used Transpose to turn my row(s) into column(s), howerver when I display in a table in PBI desktop the data is converted back to rows. What is the easiest way to acheive this?
My dataset will contain multiple rows but only one can be displayed as I'm filtering on a single row slicer. I can enforce a single row to be returned by the SQL server if that makes it easier to display as a vertical list?
Powerquery
PBI desktop in a table control
Thanks in advance
Solved! Go to Solution.
Hi @davidgray42
Load your table to Power Query
Select all columns then, on the Transform Tab > Unpivot all columns
Kudos and Accept as solution appreciated 🙂
Hi @davidgray42
Load your table to Power Query
Select all columns then, on the Transform Tab > Unpivot all columns
Kudos and Accept as solution appreciated 🙂
Wow, it was that staightforward 😁
Thanks for your answer, works a treat now 👍
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 | |
| 7 | |
| 7 | |
| 6 |