Forum Discussion
Conditional Formatting based on two columns
- 3 years ago
evano_oruvan , Create color measure
Switch( True(),
[Current age measure]< 60 && [annualincome Measure] > 100000, "Green",
[Current age measure] >= 60 && [Current age measure]< 70 && [annualincome Measure] >60000 && [annualincome Measure] <= 100000, "Orange",
[Current age measure] > 70 && [annualincome Measure] < 60000 , "Red")
Use this in conditional formatting using 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
evano_oruvan , Create color measure
Switch( True(),
[Current age measure]< 60 && [annualincome Measure] > 100000, "Green",
[Current age measure] >= 60 && [Current age measure]< 70 && [annualincome Measure] >60000 && [annualincome Measure] <= 100000, "Orange",
[Current age measure] > 70 && [annualincome Measure] < 60000 , "Red")
Use this in conditional formatting using 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
- evano_oruvan3 years agoFrequent Visitor
thank you 🙂 mine is a calculated columns, i am unable to use the column, is there any workaround.
thanks- amitchandak3 years agoSuper User
evano_oruvan , You can create a calculated column, But it will take max or min color, based on row context. You have chosen min or max while defining conditional formatting
Switch( True(),
[Current age]< 60 && [annualincome] > 100000, "Green",
[Current age] >= 60 && [Current age]< 70 && [annualincome] >60000 && [annualincome Measure] <= 100000, "Orange",
[Current age] > 70 && [annualincome] < 60000 , "Red")