Dashboard Mode - Mark as date table
Business Question
How can we use a date table marked properly in Power BI to analyze sales trends over time?
How can we use a date table marked properly in Power BI to analyze sales trends over time?
| Date | Sales Amount |
|---|---|
| 2024-01-01 | 100 |
| 2024-01-02 | 150 |
| 2024-01-03 | 200 |
| 2024-01-04 | 130 |
| 2024-01-05 | 170 |
| 2024-01-06 | 160 |
| 2024-01-07 | 180 |
| Date | Year | Month | Day | Weekday |
|---|---|---|---|---|
| 2024-01-01 | 2024 | 1 | 1 | Monday |
| 2024-01-02 | 2024 | 1 | 2 | Tuesday |
| 2024-01-03 | 2024 | 1 | 3 | Wednesday |
| 2024-01-04 | 2024 | 1 | 4 | Thursday |
| 2024-01-05 | 2024 | 1 | 5 | Friday |
| 2024-01-06 | 2024 | 1 | 6 | Saturday |
| 2024-01-07 | 2024 | 1 | 7 | Sunday |
Total Sales = SUM('Sales'[Sales Amount])+----------------------+----------------------+ | KPI Card | Line Chart | | Total Sales (1090) | Sales Over Time | +----------------------+----------------------+ | Table: Sales by Weekday | +----------------------------------------------+
The date table is marked as a date table in Power BI using the Mark as Date Table feature with the Date column selected. This allows the line chart and table visual to use the continuous date axis and proper date hierarchies.
Filters or slicers on the date table (like Year or Month) will update all visuals because the sales data is related to the date table by the Date column.
If you add a slicer filtering the Year = 2024 on the date table, which components update?