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

Matrix visual: How to conditionally format the column header, Values font size, or Values border?

I have a matrix control with 12 columns, Jan thru Dec. I have several measures as rows. I would like to indicate the current month in some way such as making all the cells in that column bold, or making them all have a border, or by giving the column header for that month a different background colour.

 

This is what I have currently. The Values background colour is set using Conditional Formatting.

EylesIT_0-1668768638105.png

 

 

Assuming Sep is the current month, this is how I would like it to appear (a different cell border for that month):

EylesIT_1-1668768734821.png

or make the cells font for that month bold:

EylesIT_2-1668768813402.png

 

Does anyone have any suggestions on how to do this?

 

1 ACCEPTED SOLUTION
menglaro78
Employee
Employee

HI @Anonymous ,

I suggest to create a measure for Check current Month like this:

CheckMonth = IF(MONTH(TODAY()) = SELECTEDVALUE('Table'[Mese]), "Red", "Black")
 
Apply conditional formatting for value of Matrix
 
Formatting.pngMatrixFor.png
Marco
 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

View solution in original post

4 REPLIES 4
menglaro78
Employee
Employee

HI @Anonymous ,

I suggest to create a measure for Check current Month like this:

CheckMonth = IF(MONTH(TODAY()) = SELECTEDVALUE('Table'[Mese]), "Red", "Black")
 
Apply conditional formatting for value of Matrix
 
Formatting.pngMatrixFor.png
Marco
 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Anonymous
Not applicable

@menglaro78 , thanks for your suggestion. Changing the colour of the cell value font is the least favourable option. Is there any way to change the background colour of the column header, or to achieve the other two options I described in my port?

Hi,

in my opinion you can't get what you're asking for, because those options, such as border, don't have the Fx button, so they can't apply conditional formatting.

 

Marco

Anonymous
Not applicable

@menglaro78 , that's what I suspected. Thanks for confirming, and thanks for your suggestion, it seems to be the easiest way to achieve what I am trying to do (though not ideal).

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.