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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Eva1
Frequent Visitor

How to change format / style of column headers

Eva1_0-1636148706318.png

Hi,

I have set up a table via BI but i would like to change the header of each column to be centred and a different colour?  Is this possible or have i taken an unecessarily long way round to do this.

 

 

 

1 ACCEPTED SOLUTION

Hi, @Eva1 

 

The link above I used to show just one scenario with the Switch and Format functions
If you want to format as a percentage, you can select the column or measure you want to format and then click the percentage button at the top of the desktop.

vangzhengmsft_0-1636420476312.png

Or you can format it to the format you want by using the FORMAT function.

FORMAT Function.

 

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng

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

9 REPLIES 9
nouheerbabu
New Member

You can change it from "Visuals", go to "Specific Column" and select only "Apply to header"  and change the format from Values.

Eva1
Frequent Visitor

Hi Alexis

So i have the table, then i clicked the three dots in the top right hand corner and this appeared.  Its headed Main, Outer header/border, reusable styles, header row, columns, rows.  I presume i need to write some code to adjust the colour of the header?

This doesn't look like anything from within Power BI Desktop to me unless it's from some custom visual. If it's a custom visual, you'll need to refer to the documentation for that visual if it has any.

Alexis - i think ive sat here for 3 hours looking at this and you are right, its a custom visual called 'summary table' when actually i just amended it to 'table' and looks fine!  ARGHHH.

 

Is there any way to format specific rows here to amend to % format?

Hi, @Eva1 

 

It may be helpful to use Switch or IF function, such as If(Max(RowName="A"),Value&"%", else)

 

refer:

https://community.powerbi.com/t5/Desktop/Creating-a-calculated-column-for-the-latest-and-previous-da...

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

Hi, 

 

Do you mind explaining how to do this if and switch as this link doesnt appear to correctly show how?

 

Revenue

Cost of Sales

Profit

Profit Margin

 

And i would like the profit margin row to be formatted as a %.

 

I am new to BI so wanted to understand this at basic principles

 

Hi, @Eva1 

 

The link above I used to show just one scenario with the Switch and Format functions
If you want to format as a percentage, you can select the column or measure you want to format and then click the percentage button at the top of the desktop.

vangzhengmsft_0-1636420476312.png

Or you can format it to the format you want by using the FORMAT function.

FORMAT Function.

 

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng

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

Sorry. I don't know how that custom visual works.

AlexisOlson
Super User
Super User

I don't know what your screenshot is related to but if you have multiple fields in your table, then you can format them separately under the Field formatting section in the Format pane (note the toggle for whether to apply the format to header / values / total ).

 

If you have a matrix where your columns are a pivoted field, then I don't think you can control them separately.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.