Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article is for data modelers who develop Import or Composite models in Power BI Desktop. It provides guidance, recommendations, and considerations when using Power BI Desktop Auto date/time in specific situations.
Note
For an overview and general introduction to Auto date/time, see Auto date/time in Power BI Desktop.
The Auto date/time option provides convenient, fast, and easy-to-use time intelligence. Report authors can work with time intelligence when filtering, grouping, and drilling down through calendar time periods.
Considerations
Keep these considerations and limitations in mind when using the Auto date/time option:
- Applies to all or none: When you enable the Auto date/time option, it applies to all date columns in Import tables that aren't on the "many" side of a relationship. You can't enable or disable it for individual columns.
- Calendar periods only: The year and quarter columns use calendar periods, with years starting on January 1 and ending on December 31. You can't customize the year start or end dates.
- Customization: You can't customize time period values or add columns for other time periods like weeks.
- Year filtering: The
Quarter,Month, andDaycolumn values don't include the year. For example, theMonthcolumn shows only month names (January, February, and so on). The values don't fully describe the context and might not clearly communicate the year filter in some report designs.- That's why it's important that filters or grouping must take place on the
Yearcolumn. When drilling down by using the hierarchy, the year is filtered, unless theYearlevel is intentionally removed. If there's no filter or group by year, a grouping by month, for example, summarizes values across all years for that month.
- That's why it's important that filters or grouping must take place on the
- Single table date filtering: Because each date column creates its own (hidden) auto date/time table, you can't apply a time filter to one table and have it propagate to multiple model tables. Filtering in this way is a common modeling requirement when reporting on multiple subjects (fact tables) like sales and sales budget. When using auto date/time, the report author needs to apply filters to each different date column.
- Model size: Each date column that generates a hidden auto date/time table increases the model size and also extends the data refresh time.
- Other reporting tools: You can't work with auto date/time tables when:
- Using Analyze in Excel.
- Using Power BI paginated report Analysis Services query designers.
- Connecting to the model by using non-Power BI report designers.
Recommendations
Keep the Auto date/time option enabled only when you work with calendar time periods and have simplistic model requirements related to time. Using this option can also be convenient when creating ad hoc models or performing data exploration or profiling.
When your data source already defines a date dimension table, use this table to consistently define time within your organization. This table is typically present if your data source is a data warehouse. Otherwise, you can generate date tables in your model by using the DAX CALENDAR or CALENDARAUTO functions. You can then add calculated columns to support the known time filtering and grouping requirements. This design approach might allow you to create a single date table that propagates to all fact tables, possibly resulting in a single table to apply time filters. For further information on creating date tables, read the Set and use date tables in Power BI Desktop article.
Tip
For more information about creating calculated tables, including an example of how to create a date table, work through the Add calculated tables and columns to Power BI Desktop models learning module.
If the Auto date/time option isn't relevant to your projects, disable the global Auto date/time option. It ensures that all new Power BI Desktop files you create don't enable the Auto date/time option.
Related content
For more information related to this article, check out the following resources: