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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
catpoisoncat
Frequent Visitor

How to create sub column header in this case?

In Power QueryIn Power Query

This is the original table in power query above.

 

What I want to get.What I want to get.

This is what I want it to look like in my report (the highlighted part).

I used EXCEL only to demonstrate what I wanted in Power BI report format (since I don't know I to do it in Power BI).

I've tried unpivot and transpose, but maybe my steps are wrong, I just couldn't get the output that I wanted.

Thank you for your help.

@v-yueyunzh-msft 

 

1 REPLY 1
amitchandak
Super User
Super User

@catpoisoncat , In the matrix Office and Month, need to row, then you think about header grouping, using calculation group  or unpivot

 

column header grouping
https://www.daxpatterns.com/dynamic-segmentation/
https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905
https://community.powerbi.com/t5/Desktop/grouping-measure-results/td-p/456795

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors