Forum Discussion
Datediff when date column does not have default value
- 6 years ago
Dunner2020 , You should be able to use isblank for the blank date which 1899/12/31
Also, you can not have "" and number together. Data type is different
IF( isblank(MAX('Interruptions'[Date A])), 0, DATEDIFF(MAX('Interruptions'[Date B]),
MAX('Interruptions'[Date A]), DAY))IF( isblank(MAX('Interruptions'[Date A])), blank(), DATEDIFF(MAX('Interruptions'[Date B]),
MAX('Interruptions'[Date A]), DAY))
Dunner2020 , You should be able to use isblank for the blank date which 1899/12/31
Also, you can not have "" and number together. Data type is different
IF( isblank(MAX('Interruptions'[Date A])), 0, DATEDIFF(MAX('Interruptions'[Date B]),
MAX('Interruptions'[Date A]), DAY))
IF( isblank(MAX('Interruptions'[Date A])), blank(), DATEDIFF(MAX('Interruptions'[Date B]),
MAX('Interruptions'[Date A]), DAY))