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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
qhpowerbi
Helper III
Helper III

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

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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