Forum Discussion

prv_1401's avatar
prv_1401
Icon for Helper I rankHelper I
4 years ago
Solved

Conditional formatting of Icon colour

Hi Everyone !!

I got a card and Icon which shows the fillrate% and the indication icon respectively.

I have attached below the images of it .

 

Requirement : I want the card and Icon to turn green when the % is above 99.00 % . So when it's below 99.00 ( red ) and when above 99.00% (green) 

 

I tried some measures and I could get the red colour but it isn't changing to green when it's above 99% . Appreciate any help .

Thank You

 

PaulOlding Anonymous v-jianboli-msft Thank you all who helped me previously.

 

  • prv_1401 Because the actual value is actually .996. You have it formatted to display as a percentage which makes it display on the screen as 99.60%. Formatting is separate from the actual value. In fact, the value may actually be .996 but since you have 2 decimal places of formatting it shows as 99.60%. Another example, the actual value might end up being .996347 but if you only have 2 decimal places of formatting then it will be 99.63%. Formatting is controlled via the Format section of the Measure Tools or Column Tools tabs in the ribbon. You can also have custom format strings, which are a treat.

    https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389

4 Replies

    • prv_1401's avatar
      prv_1401
      Icon for Helper I rankHelper I

      Greg_Deckler  Thank you so much. It worked.
      Can you tell me why should we put it in that way ( like 0.99) ?
      I am new to PowerBI so curious to know .

      • Greg_Deckler's avatar
        Greg_Deckler
        Icon for Community Champion rankCommunity Champion

        prv_1401 Because the actual value is actually .996. You have it formatted to display as a percentage which makes it display on the screen as 99.60%. Formatting is separate from the actual value. In fact, the value may actually be .996 but since you have 2 decimal places of formatting it shows as 99.60%. Another example, the actual value might end up being .996347 but if you only have 2 decimal places of formatting then it will be 99.63%. Formatting is controlled via the Format section of the Measure Tools or Column Tools tabs in the ribbon. You can also have custom format strings, which are a treat.

        https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389