Forum Discussion
osinquinvdm
9 years agoAdvocate II
How 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
v-yulgu-msft
9 years agoMicrosoft Employee
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
- fiveone9 years agoHelper II
Nice Trick!
It does indeed work.
I wish DATEADD() was smart enough to force it like this on its own
- LaurentCouartou9 years agoSolution Supplier
Assuming the unit for [Delay] is a number of days, you could also write:
[Date created]+[Delay]