Forum Discussion
Workdays Dax not working
- Anonymous10 years ago
This worked after I formatted the Estimate and PO date fields to date only (no time). goofy - but it worked right after the format.
Just in case anyone else was having problems.
Raven
OK this error was truely because some of my date fields were messed up (ie: 5/1/151 or 5/1/203 or 5/1/2029
Mine worked when i used a query to get data - with a certain date range that did not include the messed up dates above.
Just Learning
Raven
I receive this same error with my data model when trying to use any time intelligence function (previousmonth and previousyear in my case).
For some reason, the data model automatically adds a timestamp to the end of each date type field which violates one of the requirements for a date table using time intelligence. The weird thing is, it also adds a timestamp to a MONTH_DIM table but that does not result in an error. My DATE_DIM table has no gaps or weird numbers in it after thorough insepction and analysis.
I am using a simple formula:
=Calculate( Sum([SALES]), PREVIOUSMONTH('DATE_DIM'[FULL_DATE]) )
Any help would be appreciated.
Thanks