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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
sasuser
Regular Visitor

Change Font of Column Header if values are empty

In my data I have 2026 months as columns (jan as column 3), Feb Column 4, etc. Col 1 is KPIs, Col2 is KPI category. Created matrix: KPIs in Rows, Jan 2026 in Values, Feb 2026 in Values, so on. Brought each month of the year in Values. Now since there is no data in Feb, March, April YET in KPIs, I want to cnahe font of Feb, March (months that have not yet happened yet) to match with backgrounf fill of matrix so that months that have not happened yet blend in with the matrix background color. I have used below formulas but font of the column header does not chnage. can someone share a solution?

 

Header Color – MyTextCol = VAR NonBlankCount = CALCULATE( COUNTROWS( FILTER(VALUES('query1'[FEB_2026]), NOT ISBLANK('01272026 AUTOMATION SQL'[FEB_2026])) ) ) RETURN IF(NonBlankCount = 0, "#1C1C3C", "#FFFFFF"

 

sasuser_0-1769636230744.png

 

1 ACCEPTED SOLUTION

Hi @sasuser ,
Power BI doesn't support conditional formatting for column header font color in a Matrix visual. However, you can use conditional formatting to blend future month values with the background. Create measures to identify future months and set font color accordingly, then apply conditional formatting to the Matrix as described.

See the attached .pbix file for reference.

View solution in original post

7 REPLIES 7
v-sshirivolu
Community Support
Community Support

Hi @sasuser
Power BI’s built-in Matrix visual doesn’t currently allow conditional formatting of column header font color, which is why the original DAX approach couldn’t produce the expected result. To create the same visual effect for future months, the solution is to ensure those month columns remain visible by using a measure that returns 0 instead of BLANK, preventing Power BI from hiding them. Conditional formatting is then applied to the matrix values and their backgrounds using a date-based measure. This makes future months blend into the report background so they appear faded or inactive, while the column layout and alignment stay intact. This method works within Power BI’s existing feature set and achieves the desired visual outcome without relying on custom visuals or unsupported functionality.

Thank you, idea of converting values to 0's instread of BLANKS might work. I will implement it next week when back to office. meanwhile, do you think you can share an example and steps to blend column header with the baxckground? I would greatly appreciate it.

Hi @sasuser ,
Power BI doesn't support conditional formatting for column header font color in a Matrix visual. However, you can use conditional formatting to blend future month values with the background. Create measures to identify future months and set font color accordingly, then apply conditional formatting to the Matrix as described.

See the attached .pbix file for reference.

Hi @sasuser ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Hi @sasuser ,

I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.

 

sasuser
Regular Visitor

Thanks! I am not seeing fx option believing data is in text datatype could be the reason. Is any workaround possible to figure this out?

BA_Pete
Super User
Super User

Hi @sasuser ,

 

As far as I'm aware, you can't change the column header text colour in a Matrix visual dynamically.

 

You can see whether a visual item can be dynamically changed or not by whether it has an 'fx' button next to it in the side bar. For example, VISUAL Title Text, Text Colour, and Background Colour can all be changed dynamically in response to a given measure value or conditions:

BA_Pete_0-1769669823892.png


Matrix Column Header Text Colour, however, can not:

BA_Pete_1-1769669884155.png

 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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