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
Anonymous
Not applicable

Give Columns Shared Header

Hey Guys,

 

I am trying to visualize Data (mainly text) in a big table, and give certain variables (columns) a shared header.

So for example if I have colums 1-7 in a table, I want to have 1,2 and 3 to have the common header "financials", 4 and 5 to have the header "Project Details" and 6 and 7 to have the shared header "status"

Is this possible in Power BI?

 

tried to visualize it:

 

ColumnHeaders.PNG

 

 

Thanks guys!

Cheers,


Janik

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

First go to query editor>select all columns >unpivot columns:

Annotation 2020-03-30 155220.png

Annotation 2020-03-30 155251.png

 

Then create a calcuated column:

 

Column = IF('Table'[Attribute] in {"column 1","column 2","column 3"},"financials",IF('Table'[Attribute] in {"column 4","column 5"},"Project Details","status"))

 

 

Finally, create a matrix and you will see:

Annotation 2020-03-30 155436.png

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

 

View solution in original post

6 REPLIES 6
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

First go to query editor>select all columns >unpivot columns:

Annotation 2020-03-30 155220.png

Annotation 2020-03-30 155251.png

 

Then create a calcuated column:

 

Column = IF('Table'[Attribute] in {"column 1","column 2","column 3"},"financials",IF('Table'[Attribute] in {"column 4","column 5"},"Project Details","status"))

 

 

Finally, create a matrix and you will see:

Annotation 2020-03-30 155436.png

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

 

interesting solution, do you have any idea if I am using some measures and columns in a table view, how can I do the same.

 

best regards

Mo

amitchandak
Super User
Super User

You have created a new table where you to unpivot your columns /measures to rows and then add a calculated column to put them into group.  

 

For columns you can refer :https://radacad.com/pivot-and-unpivot-with-power-bi

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
Anonymous
Not applicable

Not sure if you understood my question correctly:
My data already is in colums, I just want to visualize the colums better by having a shared column header.

Hope I did not understand your answer incorrectly.

refer if this can help

https://www.daxpatterns.com/dynamic-segmentation/

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
lkalawski
Resident Rockstar
Resident Rockstar

Hi JanikSchaefer,

 

Please add a picture using the post editor.

Ex2.png



_______________
If I helped, please accept the solution and give kudos! 😀

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.