Forum Discussion
osinquinvdm
Advocate II
9 years agoHow come the value is sometimes not calculated
I have a creation date and a delay. I'm calculating the due date by adding the delay to the creation date Date due = DATEADD([Date created];[Delay];DAY) in 80% of the cases it works fine but fo...
- 9 years ago
Hi osinquinvdm,
Please modify your formula as below, this will give all the due date as expected:
Date due = DATEADD(TableName[Date created].[Date],[Delay],DAY)
Best regards,
Yuliana Gu
fiveone
Helper II
9 years agoNice Trick!
It does indeed work.
I wish DATEADD() was smart enough to force it like this on its own
LaurentCouartou
Solution Supplier
9 years agoAssuming the unit for [Delay] is a number of days, you could also write:
[Date created]+[Delay]