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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.