Forum Discussion
PatriceGREN
7 years agoRegular Visitor
Using Dateadd
Hi, I can t use the DATEADD function correctly. DATEADD(HISTORIQUE[DateFinPeriodeEssai1],-nbjprevenance,DAY) -nbjprevenance = variable if I put 0 in place of the variable, I get the right dates...
- 7 years ago
Hi,
After many tests, I tried this syntax:
HISTORIQUE[DateFinPeriodeEssai1] - nbjprevenance
and it works.
parry2k
Super User
7 years agoPatriceGRENcan you provide details on how you are calculating nbjprevenance variable? Also do you have date dimension in your model on which you are performing this DateADD function?
PatriceGREN
7 years agoRegular Visitor
- PatriceGREN7 years agoRegular Visitor
Hi,
After many tests, I tried this syntax:
HISTORIQUE[DateFinPeriodeEssai1] - nbjprevenance
and it works.