Forum Discussion
changing background color with condition
- Anonymous2 years ago
Hi Anonymous ,
A DAX measure needs to be created to determine if the SAP release of each component is consistent across all environments. Returns false if consistent and true if inconsistent.
ReleaseDiffernce = IF(CALCULATE(DISTINCTCOUNT('sap'[sap_full_release]), ALLEXCEPT('sap', 'sap'[sap_component])) > 1, "true", "false")Set the format of the condition based on the different values of ReleaseDiffernce.
The page result is shown below:
If you have any other questions please feel free to contact me.
The pbix file is attached.
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Anonymous , you can use measure to do that using field value option.
switch(true() ,
max(Table[Release]) = "736SP4" , "Green",
max(Table[Release]) = "735SP4" , "Grey"
max(Table[Release]) = "734SP4" , "Red"
)
If needed you can use hexcode with # sign
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