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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create a header for mutliple columns

I have a project in excel which i have to replicate in Power bi.

 

Data looks like:

 

adi0007_0-1598507079957.png

 

   

 

I want to make header for ASBL and EAC same as it is above in Power bi.

I tried using matrix but as i have multiple string columns it seems difficult.

 

Let me know is there any dax or any other way.

 

Thanks!

5 REPLIES 5
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Based on my research, it is not supported in power bi currently because powerbi does not recognize the merged column headings but treats each cell as a separate column. The merged column headings will only appear in one of the columns, and the remaining columns will be displayed as null.

 

Here is an simliar idea about this issue, you can vote for it to help us improve power bi and make this feature coming sooner.

 

Best Regards,
Yingjie Li

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

pranit828
Community Champion
Community Champion

Hi @Anonymous 

I don't think it is possile to do it in power BI as how is the visual goinf to know which columns merge together to form a combined header and when not to.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
Anonymous
Not applicable

@pranit828 

Is there any dax to create header or any power bi option to do it.

 

@amitchandak , Matrix won't work bcoz i have multiple text columns.

It works if you are working with a single text column

HI @Anonymous 

There is no DAX measure which can give you the name of the column I am aware about.

You can check the below video, it doesn't do exactly as per your ask but shows you how an hierarchial column can be useful.

https://www.youtube.com/watch?v=0tVPLocU7e0

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
amitchandak
Super User
Super User

@Anonymous , Assuming the is the visual format, not the raw data, I think this should possible with Matrix

https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

 

With expand all level

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.