Forum Discussion
Adding some Tolerance to KPI Colour Coding
Is it possible to change the colour of the KPI visual depending on how close it is to the target? My current visual shows green/ red if over/ under by using the KPI Colour coding, but we would like to show it as orange if we are within 10% of the target. Is this possible to add a tolerence?
e.g. the following would show in Orange as the actual figure is within 10% of the target:
Current colour coding:
Is there some magic I can add to the neutral colour that makes it orange if it's within 10%?
7 Replies
- parry2kSuper User
Anonymous maybe you can create a color measure for neutral color and have the logic in it, and click fx and use your measure for color
Neutral Color = IF ( [Measure %Age] >= .9, "Orange", "Yellow" )✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
Thanks for the reply parry2k . I have created the measure. What format do I need to use - Colour Scale, Rules or Fixed Value?
It doesn't actually allow me to select the new measure when i tried on the rfixed value option. What data type does the measure need to be? It's currently whole number, Thanks.
- parry2kSuper User
Anonymous Data type should be text and you will use field value
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
Hi parry2k , this doesn't seem to work unfortunately. The colour doesnt change.
- parry2kSuper User
Anonymous can you test that measure value in a matrix visual to make sure the color value is changing. It all depends on how that measure is done. or if you drop that color measure in a card visual what color value you get.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
Ah yes - it goes Orange if i change to a table. Is there therefore a way to make this work in a KPI visual?
- parry2kSuper User
Anonymous very hard to say, until I get to see power bi report? if you can share a power bi file, remove sensitive information before sharing.