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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
h2bi
Frequent Visitor

Color a specific matrix cell value

Hello

In a Matrix with years in the column headers and Months in row headers

How can i specify the font color of a specific vaue inside the matrix, like the value of the last month of my last year highlighted in blue color

 

1 ACCEPTED SOLUTION
Daniel29195
Community Champion
Community Champion

@h2bi 

measure : 

if it is the last year, then your last month is december im assuming the logic.

you can write the fillowing measure : 

 

colormeasure = 

if  ( tbl_name[ monthnb] = 12 &&  tbl_name[year] = year(today()) - 1 ) , "Blue" ) 

 

then add this measure to the condtional formatting  : right click  on the measure 

Daniel29195_0-1708026997723.png

 

 

Daniel29195_1-1708027043768.png

select field value,  then search for your measure .

 

 

 

let me know if this helps . 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

View solution in original post

1 REPLY 1
Daniel29195
Community Champion
Community Champion

@h2bi 

measure : 

if it is the last year, then your last month is december im assuming the logic.

you can write the fillowing measure : 

 

colormeasure = 

if  ( tbl_name[ monthnb] = 12 &&  tbl_name[year] = year(today()) - 1 ) , "Blue" ) 

 

then add this measure to the condtional formatting  : right click  on the measure 

Daniel29195_0-1708026997723.png

 

 

Daniel29195_1-1708027043768.png

select field value,  then search for your measure .

 

 

 

let me know if this helps . 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.