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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
bhmiller89
Helper V
Helper V

Conditional Formatting Issues

I have a matrix that uses many different data points, all $dollars or perents.

 

I need to show anything negative (<0) as the Font Color Red. 

 

When I attempt conditional formatting, I am only presented with the option of "if value is greater than or equal to", "if value is greater than" "if value is blank" and then it always makes me pick a second condition. 

 

I literally just need to say "if <0, red, else black" 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@bhmiller89 , You create a color measure like

Color sales = if(AVERAGE(Sales[Sales Amount])>0,"green","red")

And in conditional formatting use field option and choose this measure

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

 

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

View solution in original post

v-xuding-msft
Community Support
Community Support

Hi @bhmiller89 ,

 

I agree with amitchandak. You could use a measure to implement it. 

Measure = IF([Percentage]<0,"Red","Black")

2.gif

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hi @bhmiller89 ,

 

Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from the thread.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-xuding-msft
Community Support
Community Support

Hi @bhmiller89 ,

 

I agree with amitchandak. You could use a measure to implement it. 

Measure = IF([Percentage]<0,"Red","Black")

2.gif

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello,

 

using conditional formatting you can apply a single condition:

rule.jpg

amitchandak
Super User
Super User

@bhmiller89 , You create a color measure like

Color sales = if(AVERAGE(Sales[Sales Amount])>0,"green","red")

And in conditional formatting use field option and choose this measure

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

 

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
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.