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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Card text conditional formatting on percentage

Hello - I am trying to use conditional formatting on card visual text.  Simply what i'm trying to say is if the percentage is below zero make the text Red, if it is zero or above - make it Green.  The issue i'm having is that my percentage, which is 85%, is turning Red.  Can you help?  Here is a snip of my formatting:

 

 

CondEx (2).PNG

I orginally tried just equal to or greater than 0 in the second rule for green but that also goes red.  I'm thinking it just needs to be some right variation of a decimal?

 

Thanks!

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

I believe you might refer to this thread:

https://community.powerbi.com/t5/Desktop/Conditional-formatting-issue-on-percentage/m-p/729350 

https://community.powerbi.com/t5/Desktop/Conditional-formatting-negative-numbers-red/m-p/758508 

 

 

 

Community Support Team _ Dina Ye
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-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

I believe you might refer to this thread:

https://community.powerbi.com/t5/Desktop/Conditional-formatting-issue-on-percentage/m-p/729350 

https://community.powerbi.com/t5/Desktop/Conditional-formatting-negative-numbers-red/m-p/758508 

 

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

did not get completly. Try

<= .85  red

>.85 green

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

thanks for the reply - the issue is whatever my % is - its going Red.  I'm trying to say if its a negative % then the text should be Red, i.e. if the metric returns -132.5% it should be Red.  If the return on the metric is 85% then its positive so it should be Green.  So any % be it 0 to infinity - so long as its positive - the text should be a Green color.    On the rules for conditional formatting I did a simple calc of it its the minimum to less than 0 go Red.  if its 0 or above - Green.  My 85% went Red.  I tried to tweak a bit, shown above, to include decimal numbers thinking that would address the % but its still not working.
Side Note - kudos to the msft developer who took away calling out if it was a number, %, etc in conditional formatting.....nothing like making using the tool more difficult, lol.

Anonymous
Not applicable

Any thoughts?  🙂 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.