Forum Discussion

ResearchDev's avatar
ResearchDev
Icon for Helper II rankHelper II
4 years ago
Solved

Trying to calculate Days between 2 date columns. Both Columns have nulls or no values

There is Actual Start and Actual End Date. Both columns have null values as project is in progress or no given date. Keep getting errors on below. Any suggestions? Just trying to get a number value o...
  • tamerj1's avatar
    4 years ago

    Hi ResearchDev 
    PLease try

    Days Between =
    IF (
        'BI Projects'[Actual Start] <> BLANK ()
            && 'BI Projects'[Actual End] <> BLANK (),
        DATEDIFF ( 'BI Projects'[Actual Start], 'BI Projects'[Actual End], DAY )
    )