Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello Folks,
I have below scenario where if date1 is gretaer than date2 then it should display YES And otheriwse it should be NO.
I want if Date 2 is blank then NO should be populated but it is populating YES.
Can anyone help me in knowing how to get this?
Thanks
Priyanka
Solved! Go to Solution.
Try the below DAX code,
IF(ISBLANK(date2),"NO", IF(date1 > date2, "YES","NO"))
Thanks,
Siva
Hi @INJAINP
Write dax in this way
Selection = IF(ISBLANK(Table1[Date2]),"No",
IF(Table1[Date1]>Test2[Date2],"Yes","No"))
Hope this will help you!!!
Hello Angad,
Thanks for your input.
The issue got resolved as I was just doing a minor mistake.
Thanks
Priyanka
Hi @INJAINP
Write dax in this way
Selection = IF(ISBLANK(Table1[Date2]),"No",
IF(Table1[Date1]>Test2[Date2],"Yes","No"))
Hope this will help you!!!
Hello Angad,
Thanks for your input.
The issue got resolved as I was just doing a minor mistake.
Thanks
Priyanka
Please post your solution and mark as a solution or mark any of the replies as a solution that solved your problem. It will help people who are facing the same issue.
Thanks,
Siva
Try the below DAX code,
IF(ISBLANK(date2),"NO", IF(date1 > date2, "YES","NO"))
Thanks,
Siva
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.