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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I would like to create If Statement in my 2 Date Columns.
It works well in excel, but in Power Bi, it gives me the error warning.
What should I change to make it work?
Hope to hear from you.
Thanks
Solved! Go to Solution.
I believe that PBI is seeing "" as a string, even though it is empty. Try using:
IF(ISBLANK('Table'[Field]), "if true", "if false")
hi, @Anonymous
In power bi, just try this formula
IF(Deals[Deal·Deal closed on].[Date]=BLANK(),"Open",IF(Deals[Deal·Won time].[Date]=BLANK(),"Lost","Won"))
or
IF(ISBLANK(Deals[Deal·Deal closed on].[Date]),"Open",IF(ISBLANK(Deals[Deal·Won time].[Date]),"Lost","Won"))
Best Regards,
Lin
I believe that PBI is seeing "" as a string, even though it is empty. Try using:
IF(ISBLANK('Table'[Field]), "if true", "if false")
I will try and let you know later!!
Thanks for quick reply 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!