Forum Discussion
automated conditional formatting
Hi there,
Can anyone help me with this.
I have daily transaction amount in table1 for client food and total budget for client food in table2. I want to apply a dynamic conditional formating in my guage chart with different colors based on sum of the transaction amount against their budget. For example if the sum of the transaction is less than 50% of the total budget then the color is green but if it is greater than 50% the color changes to red.
Kinley1 , You can create a measure
A% = divide (sum(Table[Actual]), Sum(Budget[Budget]))
Now you can use field or rule based conditional formatting
for field value base conditional formatting use the following measure in conditional formatting
Switch ( True(),
[A%] <.5 , "Red",
[A%] <.75, "Yellow"
, "Green")
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
2 Replies
- amitchandakSuper User
Kinley1 , You can create a measure
A% = divide (sum(Table[Actual]), Sum(Budget[Budget]))
Now you can use field or rule based conditional formatting
for field value base conditional formatting use the following measure in conditional formatting
Switch ( True(),
[A%] <.5 , "Red",
[A%] <.75, "Yellow"
, "Green")
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 - Kinley1Frequent Visitor
amitchandak Thank you for the prompt response/help, will try definitly try this:-)