Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
HenryJS
Post Prodigy
Post Prodigy

Conditional Formatting Measure

Hi all,

 

How can I create a conditional formatting measure which states:

 

If [advert created] =< ([job registered] + 3 days) THEN Green

 

If [advert created] > ([job registered] + 3 days) THEN Yellow

 

If [adverted] = "No" THEN Red

 

Capture.PNG

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@HenryJS , Create a color measure use in conditional formatting with field value option

 

Color = Switch( True() ,
max(table[advert created]) =< max([job registered]) + 3 , "Green",
max(table[advert created]) > max([job registered]) + 3 , "Yellow",
max([adverted]) = "No","Red"
)

 

refer for step: https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@HenryJS , Create a color measure use in conditional formatting with field value option

 

Color = Switch( True() ,
max(table[advert created]) =< max([job registered]) + 3 , "Green",
max(table[advert created]) > max([job registered]) + 3 , "Yellow",
max([adverted]) = "No","Red"
)

 

refer for step: https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.