Forum Discussion
markmess77
Resolver I
6 years agoCALENDARAUTO Function not working properly?
I am working with a dataset that contains data from 2019 and 2020. I've been using a date table populated by the dax below, which has been working fine until recently. It now only returns a table for...
- Anonymous6 years ago
markmess77
CALENDARAUTO() need a base date column of datetime type in your model. With out base date column you can only used Calendar (startdate, enddate) to create a calendar table.Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mahoneypat
Microsoft Employee
6 years agoI can't explain why CALENDARAUTO() is not working for you, but you can use this variation on your expression to get the full year. That shouldn't be needed for Time Intelligence to work, but it is a good thing to do.
VAR Basecalendar = CALENDAR(DATE(2019,1,1), DATE(YEAR(TODAY()), 12,31))
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat