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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
wdvro
Frequent Visitor

Unpivot Table

Hello, 

 

I have a excel table that looks like this (simplified):

wdvro_0-1693318411093.png

 

 

How can I transform it so it looks like this in Power BI:

 

wdvro_1-1693318431872.png

 

 

Thanks in advance! 

2 ACCEPTED SOLUTIONS

Maybe this article can be insightful: Working With Multiple Row Headers From Excel in Power Query — ehansalytics


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



View solution in original post

That was the article I was looking for! Thanks!

View solution in original post

4 REPLIES 4
marcelsmaglhaes
Super User
Super User

Hey @wdvro !

In Power Query Editor you can choose the Unpivot Column function (Unpivot columns - Power Query | Microsoft Learn).

If this post helps, please mark as solved.

Regards,
Marcel

marcelsmaglhaes_0-1693318499956.png

 


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



Hey @marcelsmaglhaes , thanks for the reply.

I'm aware of this function. However, I am struggling with the fact that when loading into Power BI, my column titles are on both the 1st (gender, education, age) and 2nd rows (male, female, other, low, medium, high, 0-20, 20-40, 40-60). 

Maybe this article can be insightful: Working With Multiple Row Headers From Excel in Power Query — ehansalytics


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



That was the article I was looking for! Thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors