Forum Discussion

ansa_naz's avatar
ansa_naz
Continued Contributor
6 years ago
Solved

Why does my DAX Datetable not include dates for 2020?

My DAX datetable is:   Date = VAR MinYear = 2018 VAR MaxYear = 2020 RETURN ADDCOLUMNS ( FILTER ( CALENDARAUTO( ), AND ( YEAR ( [Date] ) >= MinYear, YEAR ( [Date] ) <= MaxYear...
  • az38's avatar
    6 years ago

    Hi ansa_naz 

    check if in your data exists data from 2020 because in CALENDARAUTO() function range of dates is calculated automatically based on data in the model.

    You can also use CALENDAR() function instead https://docs.microsoft.com/en-us/dax/calendar-function-dax

     

    do not hesitate to give a kudo to useful posts and mark solutions as solution