Forum Discussion
Duration Calculation between different dates
- 4 years ago
You may want to look into using the COALESCE function.
For your "actual completion date" being blank scenario it would say
Actual Completion = COALESCE([Actual Completion Date],TODAY())
meaning that if the date is missing it would be supplemented by the current date.
word of warning! TODAY() depends on either user interaction (if used in a measure) or frequent/daily dataset refreshes (if used in a calculated column). It is not automatic!
You may want to look into using the COALESCE function.
For your "actual completion date" being blank scenario it would say
Actual Completion = COALESCE([Actual Completion Date],TODAY())
meaning that if the date is missing it would be supplemented by the current date.
word of warning! TODAY() depends on either user interaction (if used in a measure) or frequent/daily dataset refreshes (if used in a calculated column). It is not automatic!