Date Dimension Table

In this example, the Date Dimension table contains information about dates, including the date itself, the year, quarter, month, day, and weekday. The "Date Key" column is the table's primary key and is used to join with other tables in the Star Schema.

This Date Dimension table can be joined with other fact tables in the Star Schema, such as a Sales Fact table, which contains measures such as total sales revenue, units sold, and discounts. By joining the Sales Fact table with the Date Dimension table on the Date Key column, it becomes possible to analyze sales data by date, year, quarter, month, and weekday. For example, it becomes possible to answer questions like:

  • What was the total sales revenue for January 2022?

  • What were the total units sold on Mondays in Q1 2022?

  • What was the average discount percentage on weekends in 2022?

Last updated