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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jacobsutcliffe
Frequent Visitor

Conditional Formatting a measure in a matrix visual

Hi there,

 

I'm trying to conditionally format (highlight negative numbers as red) the output of a measure when used in a matrix visual. 

 

When I go to measure when it is in the Values section and go to set up rules based conditional fomatting it will not allow me to select the measure in the 'Based on field' drop down (the measure is there I just can't click on it). 

 

The annoying thing is it works for some of my measures but not all. Am I doing something wrong? 

 

PBI Conditional Formatting.JPG

 

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Create a measure along the lines of:

conditional format measure = IF([your measure] < 0, 1)

select the measure in the conditional formatting interface  and format when the value = 1





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

Create a measure along the lines of:

conditional format measure = IF([your measure] < 0, 1)

select the measure in the conditional formatting interface  and format when the value = 1





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






amitchandak
Super User
Super User

@jacobsutcliffe , check the data type of this measure. Is it text? are you able to select any other measure?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.