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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

adding second header to table

Hi,

I'm converting old financial reports to power bi. I have a table with a lot fo columns, so it has a horizontal scroll bar. The old report had labels for each column a through m: (numbers covered for privacy)

cryst1.png

I'm trying to find a way to add these to my power bi table. In a previous report I simply added text boxes above each column, but because there are so many columns, the text boxes wouldn't align with the correct columns while scrolling horizontally. 

Here's what I've tried:

pbi1.png

I renamed the columns but couldn't figure out a pretty way to get the letters to be on their own line. 

 

By the way this is using a table and not a matrix. I don't really want to start over in a matrix if I don't have to.

 

Thanks,

Michelle

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi mkerfs,

I think this is hard to achieve in Table(if you add new row in table, it will affect the column value’s calculation), so I suggest you use Matrix to achieve this goal. If your data sample like below

Click query editor->Click last three columns->unpivot columns->close and apply, then add a column by expression like beow

Column = SWITCH(Table3[Attribute],"ad", "columna", "at", "columnb", "ac", "columnc")

39.png

 

Then you will get below result

40.png

 

 

Best Regards,

Zoe Zhi

 

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

1 REPLY 1
dax
Community Support
Community Support

Hi mkerfs,

I think this is hard to achieve in Table(if you add new row in table, it will affect the column value’s calculation), so I suggest you use Matrix to achieve this goal. If your data sample like below

Click query editor->Click last three columns->unpivot columns->close and apply, then add a column by expression like beow

Column = SWITCH(Table3[Attribute],"ad", "columna", "at", "columnb", "ac", "columnc")

39.png

 

Then you will get below result

40.png

 

 

Best Regards,

Zoe Zhi

 

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

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.