CALENDARAUTO DAX Function in Power BI

The CALENDARAUTO DAX function in Power BI returns a table with a single column named "Date" that contains a continuous range of dates.

What it Does:

DAX Syntax CALENDARAUTO(fiscal_year_end_month)

The fiscal_year_end_month is an optional parameter. An integer from 1 (January) to 12 (December) that defines which month is considered the end of the fiscal year. Its default value is 12 (December) means the fiscal year ends in December.

Example: Basic Calendar.

DAX

Calendar Auto = CALENDARAUTO()

Creates a date table starting from Jan 1 of the earliest year to Dec 31 of the latest year found in the model.

Example: Calendar with Fiscal Year Ending in March.

DAX

Calendar Auto Fiscal = CALENDARAUTO(3)

If fiscal year ends in March:

Difference: CALENDAR vs CALENDARAUTO

FunctionBehavior
CALENDARRequires explicit start & end dates.
CALENDARAUTOAuto-detects min & max dates from your model, expands to full years.