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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Transform Column to Row

I have current table as below; how can I transform to get the result table;

qhpowerbi_0-1684135496112.png

Thank you!
Qayyum Halid

2 REPLIES 2
miTutorials
Super User
Super User

Go to Power Query Editor

 

1. Select Q1 & Q2 column, Right click and choose Unpivot column

2. Repeat the same step above by selecting  the Whats your name and Age Column

 

You will be left with the way you want your table to look like but with duplicate rows.

 

Go to HOME tab under remove rows select remove duplicate rows. Thats it !

 

This Tutorial will provide you more details if required.

 

Pivot/Unpivot PowerBI Feature explained | Power Query | MiTutorials - YouTube

 

Regards

Ismail

www.Youtube.com/MiTutorials

Anonymous
Not applicable

It become like this;

qhpowerbi_1-1684138347748.png

 

Then, if i remove Attribute duplicate; it become as below;

qhpowerbi_2-1684138387916.png

 

If i remove duplicate in Attribute.1, it become as below

qhpowerbi_3-1684138433456.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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