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
Sagejah9
Helper III
Helper III

How to treat excel tables that have merged column headers in powerbi power query?

Hi, 
I am working with an excel sheet that has merged cells for column headers. But when I pull it in PowerBI, It treats it as data points in the dataset. Can unpivoting and transposing help to get back the structure when I put it in a matrix visual? 

Sagejah9_1-1620287383826.png

This what the source table looks like 

 

Sagejah9_2-1620287530622.png

How PowerBI interprets it. 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Sagejah9 ,

 

Based on my test, this is the result closest to your requirements:

matrix with merged column.PNG

 

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Sagejah9
Helper III
Helper III

The exact output will look like the first image in my post. Basically Row 1 (Consol Adj Dr/(Cr)) is a group column made up of Reclass Entries, Adj Entries and Group. I know in order to do this grouping is to have a column containing Consol Adj Dr/(Cr) being assign to those fields so that a hierarchy can be created. But is there a way to transform it to look that way without adjusting the excel sheet? 

Icey
Community Support
Community Support

Hi @Sagejah9 ,

 

Based on my test, this is the result closest to your requirements:

matrix with merged column.PNG

 

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PoojaDarbhe
Resolver I
Resolver I

Hi @Sagejah9,

 

Could you please let me know exact output, so that it will be more clear to understand.

 

Thanks,

Pooja Darbhe 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.