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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.