Sub topic 2
Automatic date/time: what it does and where it falls short
This chapter assumes you can move between Report, Table, and Model view in Power BI Desktop. It also assumes you know what a fact table is, and that you can read a simple DAX measure. You don't need to have built a date table yet. This chapter explains why you would want to.
What automatic date/time does
Power BI Desktop has a setting called Auto date/time. It is on by default for new files. When it is on, Power BI inspects every column in your model whose data type is Date or Date/Time. For each one it quietly creates a hidden table and relates it to the column.
That hidden table is called a local date table. You can't see it in Model view, Data view, or the Fields pane. Its name has the form LocalDateTable_<guid>, where the guid is a long unique identifier.
Each local date table has these properties:
- It has one row per day, from January 1 of the earliest year found in the column to December 31 of the latest year.
- It has columns for Date, Year, Quarter, Month, and Day, plus numeric helper columns so months sort correctly.
- It has a built-in hierarchy, a drill-down path with the levels Year, Quarter, Month, and Day.
- It has a many-to-one relationship from your fact column to its Date column.
This is why a date field dropped onto a visual axis shows up with a small expand arrow. You can drill from year to quarter to month without writing any DAX. For quick exploration, that is convenient.
How it works internally
The mechanism explains most of the limits that follow. The hidden table is generated from the column's own minimum and maximum dates. It is not a shared table. If you have three date columns, you get three separate hidden tables, and none of them knows about the others.
The diagram shows a Sales table with three date columns.
Because the tables are separate, a slicer on the Year of OrderDate does not filter the Year of ShipDate. Each one filters only its own column.
You can confirm that the hidden tables exist. In the DAX query view of Power BI Desktop, run this query. It lists model tables whose names contain LocalDateTable.
EVALUATE
FILTER (
INFO.TABLES (),
CONTAINSSTRING ( [Name], "LocalDateTable" )
)Each row is a hidden table. A model with ten date columns shows ten rows. Third-party tools such as DAX Studio and Tabular Editor can also show these tables.
Using it with time intelligence
Time intelligence functions such as TOTALYTD and SAMEPERIODLASTYEAR need a complete, continuous list of dates to work with. With auto date/time, you can pass the fact table's date column directly, and Power BI uses the hidden table behind it.
Total Sales = SUM ( Sales[Amount] )
Sales YTD = TOTALYTD ( [Total Sales], Sales[OrderDate] )
Sales PY =
CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( Sales[OrderDate] ) )These measures return correct results when the visual's axis uses the auto-generated Year, Quarter, or Month fields. Many people never notice a problem at this stage, which is how the habit forms. The limits appear later, when the model needs more than one date or a custom calendar.
Where it falls short
The calendar can't be changed
You can't add columns to a local date table or edit it. You can't add any of these:
- A week number, a weekday name, or a "Is Weekend" flag.
- A fiscal year or fiscal quarter.
- A holiday or working-day flag.
- A "Year-Month" label such as
2026-03.
Any of these requires a table you own. Without one, you end up adding calculated columns to the fact table. Those repeat the same values on millions of rows.
Every date column gets its own table
In a typical sales model, OrderDate, ShipDate, and DueDate are all Date columns. Power BI builds three hidden tables for them. A single report-wide "Year" slicer can't control all three. A dedicated date table solves this with one shared calendar and a choice of which date column drives each measure.
Date columns you never use for analysis also get tables. A LastModified timestamp or a CreatedOn audit column is a common example. A wide fact table may carry dozens of hidden tables that nobody asked for.
Model size and refresh cost
Each hidden table adds rows, columns, relationships, and a hierarchy to the model. One table is small. Many tables are not. They increase the file size and memory use, and they add work during refresh. Date/time columns with many distinct values, such as a timestamp to the second, make the hidden table's relationship expensive as well.
The number of rows in the hidden table also depends on the data. If one bad record has the date 1900-01-01, the table starts in 1900 and carries more than a century of unused days.
The hidden tables are hard to inspect and reuse
You can't relate other tables to a local date table. You can't build a lookup or a custom hierarchy from it, and you can't reference its columns in a measure by name. You can only use the fields Power BI exposes through the original column. This makes it hard to debug a measure that returns an unexpected value, because you can't view the calendar the measure is running against.
The calendar is always calendar-year based
The generated hierarchy follows the normal calendar. January is month one and Q1 is January to March. If your organization reports on a fiscal year that ends in June, you can't change this. You have to build your own table.
Date data types are required
Auto date/time only applies to columns typed as Date or Date/Time. A date stored as text, such as "2026-03-14", or as an integer like 20260314, gets no hidden table. Visuals show it as plain text and time intelligence functions can't use it.
Models built for sharing
If a semantic model is shared and other people build reports on it, the hidden tables come with it. Report authors who connect to the model see auto date/time fields they didn't plan for, and they can't tell which date column a given hierarchy belongs to. A single, named, documented date table is much easier for other authors to use.
Comparison with a dedicated date table
| Capability | Auto date/time | Dedicated date table |
|---|---|---|
| Setup effort | None | You build it once |
| Number of calendars | One hidden table per date column | One shared table |
| Custom columns (week, fiscal, flags) | Not possible | Add any column |
| Fiscal year support | No | Yes |
| Visible in Model view | No | Yes |
| Filtering several date columns together | No | Yes, through relationships |
| Effect on model size | Grows with each date column | Fixed and small |
| Reusable in other measures and tables | No | Yes |
Turning it off
You can control the setting at two levels. Both are under File > Options and settings > Options.
- Global > Data Load > Time Intelligence > Auto date/time for new files. This sets the default for files you create from now on. Clear it if you always build your own date table.
- Current File > Data Load > Time Intelligence > Auto date/time. This applies to the open file only.
A safe order for an existing report is:
- Save a copy of the file.
- Build the date table and relate it to the fact table.
- Rebuild the visuals and measures to use the new table.
- Turn off Auto date/time and confirm nothing is broken.
The later chapters cover steps 2 and 3.
Common mistakes
- Assuming the hierarchy is a date table. The hierarchy comes from a hidden table you can't edit. Having a Year-Month axis doesn't mean the model has a calendar you control.
- Using a text date column. Auto date/time ignores it, and then time intelligence measures fail or return blanks.
- Leaving it on in a shared model. Authors see extra hierarchies on every date field and often pick the wrong one.
- Mixing both approaches. If you add your own date table but leave Auto date/time on, the hidden tables still exist. Report authors may drag a hierarchy from the fact table and bypass your date table. Turn the setting off once your own table is in place.
Exercise
A Sales table has OrderDate, ShipDate, and DueDate columns, and Auto date/time is on. A report author puts the Year from the OrderDate hierarchy in a slicer and a chart shows sales by ShipDate month. The chart does not respond to the slicer. Why, and what is the lasting fix?
Show answer
Each date column has its own hidden local date table, and the two tables are not related to each other. The slicer on OrderDate's Year filters only the OrderDate table, so the ShipDate chart is unaffected. The lasting fix is a single dedicated date table related to the fact table. Use one active relationship for the main date and inactive relationships for the others, activated in measures when needed. Then turn Auto date/time off.
Exercise
Name two things you can do with your own date table that you can't do with the hidden local date tables.
Show answer
Examples include adding a fiscal year column, adding a week number or weekday flag, adding a holiday flag, sharing one calendar across several date columns, and viewing and relating the table in Model view. Any two of these are correct.
Exercise
You turn off Auto date/time in the current file, and a visual that used the Date Hierarchy now shows an error. What should you do before turning the setting off next time?
Show answer
Save a copy of the file. Build and relate a dedicated date table first. Then rebuild the visuals and measures so they use that table's fields, and only then turn the setting off and check that nothing is broken.