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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Gaurav_84
Helper I
Helper I

Days count between 2 dates if one is blank

Hi Expert,

 

can you help me with my dex formula. I want to count number of days between 2 dates (open date & closed date). But in some scenario closed date is blank. 

Gaurav_84_0-1678319054775.png

 

Regards

1 REPLY 1
umanbr
Frequent Visitor

Try this if you want to display blanks for no close dates.

 

no of days=IF(ISBLANK(closed date),BLANK(),DATEDIFF(open date,close date,DAY))

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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