There's an issue with the DATE function supporting 0 day, which should represent the last day of the previous month.
Measure = DATE(2017, 1, 0)
The expected outcome on this should be December 31, 2016, but instead an error displays stating "An argument of function 'DATE' has the wrong data type or the result is too large or too small".