Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

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

Syndicated - Outbound

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

avatar user
Anonymous
Not applicable

Syndicated - Outbound

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

 

 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)