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
prv_1401
Helper I
Helper I

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

 

IMG_20220911_181240.jpg

IMG_20220911_181231.jpg

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

 

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@prv_1401 Seems like your formula should be >0.99 instead of 99



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

@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



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

@prv_1401 Seems like your formula should be >0.99 instead of 99



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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

@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



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  Ok got it. Thank you so much ❤️

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.