Forum Discussion
Nobody1292
4 years agoRegular Visitor
Date difference blank
Hi, I would like to calculate the number of days between two dates in a column. I have now solved this: = Duration.Days([M2.A Forecast Date] - [M1 Forecast Date]) But how can I add that this i...
- 4 years ago
Try the following formula as you are using Power Query:
if [M2.A Forecast Date] = null or [M1 Forecast Date] = null then null else Duration.Days([M2.A Forecast Date] - [M1 Forecast Date])
themistoklis
Community Champion
4 years ago
Try the following formula as you are using Power Query:
if [M2.A Forecast Date] = null or [M1 Forecast Date] = null then null else Duration.Days([M2.A Forecast Date] - [M1 Forecast Date])
- Nobody12924 years agoRegular Visitor
thank you, it works 🙂