Forum Discussion
DATEDIFF Function: Error between two dates
- 3 years ago
Hello josy!
You need to define interval after defining the two dates. So it will know what value it should return.
For example, if you need the difference between the two dates in number of months, add MONTHS:
Day to issue = DATEDIFF('table'[Date issued to vendor], 'table'[Requiested issued date].[Día], MONTH)For more info, please see: https://learn.microsoft.com/en-us/dax/datediff-function-dax
If this fixed your issue, please give a thumbs up and mark this response as the solution.Have a nice day!
Hello josy!
You need to define interval after defining the two dates. So it will know what value it should return.
For example, if you need the difference between the two dates in number of months, add MONTHS:
Day to issue =
DATEDIFF('table'[Date issued to vendor], 'table'[Requiested issued date].[Día], MONTH)
For more info, please see: https://learn.microsoft.com/en-us/dax/datediff-function-dax
If this fixed your issue, please give a thumbs up and mark this response as the solution.
Have a nice day!