Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Likhitha
Helper IV
Helper IV

Doubt regarding CALENDARAUTO() function

Hello All,

I created a callendar function using CALENDARAUTO() DAX .But I'm getting year range from 1899 in newly created table and relationship exists between OrderDate and Calendar Table.

CalendarAuto.PNG

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hello @Likhitha

according to https://docs.microsoft.com/en-us/dax/calendarauto-function-dax

The earliest date in the model which is not in a calculated column or calculated table is taken as the MinDate.

of my experience, its 1899 appears in the calendar table as at least one (at least) of its date columns in the data model has the value BLANK, so DAX defines it as a possible first date to calculate


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

View solution in original post

3 REPLIES 3
az38
Community Champion
Community Champion

Hello @Likhitha

according to https://docs.microsoft.com/en-us/dax/calendarauto-function-dax

The earliest date in the model which is not in a calculated column or calculated table is taken as the MinDate.

of my experience, its 1899 appears in the calendar table as at least one (at least) of its date columns in the data model has the value BLANK, so DAX defines it as a possible first date to calculate


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

I had the same issue. I figured out that because I had extracted the Time from a data column and added a "Time Only" column in "Transform Data", CALENDARAUTO() took that as a blank date and behaved as @az38 said.

 

The workaround would be to create the calculated column in the model itself, but this sounds like a bug in CALENDARAUTO(), does it not?

 

Hope this helps.

David

@dedelman_clng 

it's not a bug. for more predictable calendar you can use CALENDAR() or even GENERATESERIES() functions


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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors