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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.