Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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"
Solved! Go to Solution.
@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
Hi @bhmiller89 ,
I agree with amitchandak. You could use a measure to implement it.
Measure = IF([Percentage]<0,"Red","Black")
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.
Hi @bhmiller89 ,
I agree with amitchandak. You could use a measure to implement it.
Measure = IF([Percentage]<0,"Red","Black")
Hello,
using conditional formatting you can apply a single condition:
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |