Forum Discussion

ThomasSan's avatar
ThomasSan
Helper IV
3 years ago
Solved

Conditional formatting is not displaying 0 correctly

Hi everyone,   I am trying to introduce conditional formatting for my percentage value in order to better show whether our various sales figures have increase or decreased. In order to do that, I w...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi ,  ThomasSan 

    According to your description, you use the "+#%;-#%;0%" in the format of the measure , but it returns the "+%" in your visual , and you want to show the "0%" for it .

    I test it  in my side , it may be caused by the measure value is very small but it is a  positive number,like this:

    This is the "+#%;-#%;0%" judgement just have three conditions: Positive number, negative number and 0.

    If you want to when the measure return value is very small you can add a logic in your measure to return 0:

    Measure = IF(ABS( SUM('Table'[Column1]) ) < 0.01 ,0 , SUM('Table'[Column1]))
     
    Then we can get the value like this in the visual:

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

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