cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors