Forum Discussion
Anonymous
3 years agoNot applicable
Colour coded card based on the filter clicked
Hi, My problem here is i want to set the colour to my card based on the sales target of business unit. For example: BU | Sales Target A | 100 B | 150 My card here show...
amitchandak
Super User
3 years agoAnonymous , Based on what I got.
If sales and target are measure or create measures
then you can have color measure
color = if([sales]>[Target], "Green", "Red")
You can use the above measure in conditional formatting using the field value option
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3