Forum Discussion
RDF25087
Helper I
3 years agoDate Conditional Formatting
Hello! I have a data table with UK post code areas and a date of the last sale in that area, for example: Post Code Area Last Sale AB [NULL] AL 04/04/2023 B 23/02/2023 BA ...
amitchandak
Super User
3 years agoRDF25087 , Create a measure like
M1= count(Table[Last Sale]) +0
Then create a color measure and use that in conditional formatting using field value option
Color =
var _diff= datediff(max([Last Sales]), Today(), month)
Switch(true(),
[M1]= 0 , "Blue" ,
_diff <=1, "Green",
_diff <=3, "Yellow",
"Red"
)
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