Forum Discussion
DATEADD Function not working when using date heirarchy
- 2 years ago
Did you mark your date table as the date table in your model?
If the Date table is not marked as the date table, time intelligence functions like DATEADD fail if you are looking at any field besides the date field.
It's because the model does not understand that Year / Quarter / Month columns are related to the Date[Date] column for use in time intelligence.
Once you mark it as a date table and identify the date column, all the other columns in the date table will also work for time intelligence functions.
Did you mark your date table as the date table in your model?
If the Date table is not marked as the date table, time intelligence functions like DATEADD fail if you are looking at any field besides the date field.
It's because the model does not understand that Year / Quarter / Month columns are related to the Date[Date] column for use in time intelligence.
Once you mark it as a date table and identify the date column, all the other columns in the date table will also work for time intelligence functions.
Always an oversight somewhere, thank you!