Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
davidgray42
Frequent Visitor

Transpose rows to colums

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 

davidgray42_0-1704975787036.png

 

Desired output 

davidgray42_1-1704975814389.png

 

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

davidgray42_2-1704975930681.png

 

PBI desktop in a table control 

davidgray42_3-1704976092797.png

 

Thanks in advance

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Einomi
Helper V
Helper V

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 🙂

View solution in original post

3 REPLIES 3
Einomi
Helper V
Helper V

Thanks @davidgray42 it is pleasure to help 🙂

Einomi
Helper V
Helper V

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 👍

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.