cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Super User IV
Super User IV

@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

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Highlighted
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
Highlighted
Super User IV
Super User IV

@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

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Highlighted
Helper II
Helper II

Hello,

 

using conditional formatting you can apply a single condition:

rule.jpg

Highlighted
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

Highlighted
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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors