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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cottrera
Post Prodigy
Post Prodigy

Condition if date less than today

Hi 

 

I have a column with dates and blanks. Some of the dates are older than today. Others are greater than or equal today. I need a condtion that highlights the date if less than today. 

I have tried this function 

Condition = IF( Inspections[Max Appt Date] <= TODAY(),1,0)
 
however it also highlights the Blanks Red. These need to be white

 

DATECondition
01/09/2022Red
15/09/2022Red
28/09/2022White
 White
03/10/2022White
14/09/2022Red
 White
 White
10/10/2022White
11/10/2022White

 

thank you Richard

1 ACCEPTED SOLUTION
DimaMD
Solution Sage
Solution Sage

Привіт  , @cottrera    Це ваш бажаний результат?
Screenshot_1.jpg


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

View solution in original post

2 REPLIES 2
cottrera
Post Prodigy
Post Prodigy

Hi thank you for your quick response. Almost right , I made a couple of adjustment and it works.

 

Condition = IF(AND ( Inspections[Max Appt Date] < TODAY(), Inspections[Max Appt Date] <> BLANK()), 1,0)
 

thank you

DimaMD
Solution Sage
Solution Sage

Привіт  , @cottrera    Це ваш бажаний результат?
Screenshot_1.jpg


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.