Time Intelligence in Data Modelling Part 1: Calendar Table
For Power BI version 2.84.701.0 64-bit (August 2020) and Power Pivot for Excel version 2007
Calendar table is an essential part of every data model. We have seen how it looks and feels in Part 1 of the series. Let’s look at how to quickly create a calendar table in Power Pivot and Power BI.
Remove Time and Birth Date Columns
We will use the functions that automatically detect earliest and latest date in your data and generate a Calendar table. Since we don’t want to end up with a massive calendar table it’s important to spend some time assesing your data. Identify relevant and redundant date columns. Things like birth dates of employees are usually meaningless for business analysis. If not neccessary, you definetly don’t want them in your calendar table, as they could push the start date of your calendar decades before your actual business data starts.
For example, it the company runs from 2000 and one employe birth date is 9/1/1970, this would add up 30 years of unnecessary rows to your calendar. Similarly with time data. Each time data is read as time on day 1/0/1900, adding up an entire century of rows to your calendar table. Remove the time and birth date columns from your data.