Time Intelligence in Data Modelling Part 1: Calendar Table
A 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 dynamic calendar with DAX in Power Pivot and Power BI.
Remove Time and Birth Date Columns
We will use the functions that automatically detect the earliest and latest dates 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 assessing your data. Identify relevant and redundant date columns. Things like the birth dates of employees are usually meaningless for business analysis. If not necessary, you definitely 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.