Dashboard Mode - Date table creation
Business Question
How can we create a complete date table in Power BI to analyze sales data by year, quarter, month, and day?
How can we create a complete date table in Power BI to analyze sales data by year, quarter, month, and day?
| Date | Sales Amount |
|---|---|
| 2024-01-15 | 100 |
| 2024-02-20 | 150 |
| 2024-03-10 | 200 |
| 2024-04-05 | 250 |
| 2024-05-25 | 300 |
| 2024-06-30 | 350 |
| 2024-07-15 | 400 |
DateTable = CALENDAR(DATE(2024,1,1), DATE(2024,12,31))Year = YEAR(DateTable[Date])Quarter = "Q" & FORMAT(DateTable[Date], "Q")Month = FORMAT(DateTable[Date], "MMMM")Day = DAY(DateTable[Date])Total Sales = SUM('Sales'[Sales Amount])+----------------------+----------------------+ | Sales by Month | Sales by Quarter | | (Bar Chart) | (Card) | +----------------------+----------------------+ | Total Sales (KPI) | +------------------------------------------------+ | (Date Table used in filters) | +------------------------------------------------+
The Date Table is connected to the Sales data by the Date column. Filters on Year, Quarter, or Month from the Date Table update the Sales by Month chart, Sales by Quarter card, and Total Sales KPI dynamically.
If you add a filter to select only Quarter = "Q2", which components update and what do they show?