Forum Discussion
Anonymous
7 years agoNot applicable
Month DateDiff round down to nearest month
Hi Everyone, When I'm using the DateDiff Function to get the difference between two dates it works fine, however it rounds up my dates and I would like to round this down. E.g if the difference in ...
- 7 years ago
Hi Datediff in always ROUNDUP, for Always rounddown you may use -1 like this:
diference = DATEDIFF(Table1[Column1];Table1[Column2];MONTH)-1
rafaelmpsantos
Responsive Resident
7 years agoHi Datediff in always ROUNDUP, for Always rounddown you may use -1 like this:
diference = DATEDIFF(Table1[Column1];Table1[Column2];MONTH)-1
- Anonymous3 years agoNot applicable
This is not acceptable solution. Subtracting one will create problems for you in other situations
- wbeck2 years agoRegular Visitor
Correct, the solution is not to subtract 1. Any ideas what the solution is? I'm trying to do a calculation for Years of Service. Some of the values are getting rounded up (i.e., 5 or more months).
- Anonymous7 years agoNot applicableThank you 🤗🤗