Forum Discussion
Highlight Current Year & Month
I'm working on a KPI that will show how many projected closings are set. How do I highlight the current month and year so that the user can see all closings for the current month we're in?
Alta88 , You need to have year and month in your visual then create a measure like below and use that in conditional formatting using field value option
if( max(Table[Year]) = year(today()) && max(Table[month]) = month(today()) , "Yellow", "White")
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
2 Replies
- amitchandak
Super User
Alta88 , You need to have year and month in your visual then create a measure like below and use that in conditional formatting using field value option
if( max(Table[Year]) = year(today()) && max(Table[month]) = month(today()) , "Yellow", "White")
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 - Alta88
Helper IV
Perfect! It worked amitchandak! Thanks so much for your help!