0
0
Power BIbi_tool~8 mins

Mark as date table in Power BI - Dashboard Guide

Choose your learning style9 modes available
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?

Sample Data
DateSales Amount
2024-01-01100
2024-01-02150
2024-01-03200
2024-01-04130
2024-01-05170
2024-01-06160
2024-01-07180

Date Table Sample

DateYearMonthDayWeekday
2024-01-01202411Monday
2024-01-02202412Tuesday
2024-01-03202413Wednesday
2024-01-04202414Thursday
2024-01-05202415Friday
2024-01-06202416Saturday
2024-01-07202417Sunday
Dashboard Components
  • KPI Card: Total Sales
    Formula: Total Sales = SUM('Sales'[Sales Amount])
    Result: 1090
  • Line Chart: Sales Over Time
    X-axis: 'Date Table'[Date]
    Y-axis: Total Sales measure
    Uses the marked date table for continuous date axis
  • Table Visual: Sales by Weekday
    Columns: 'Date Table'[Weekday], Total Sales measure
    Shows sales grouped by weekday using the date table
Dashboard Layout
+----------------------+----------------------+
|      KPI Card        |      Line Chart       |
|   Total Sales (1090) |  Sales Over Time      |
+----------------------+----------------------+
|          Table: Sales by Weekday             |
+----------------------------------------------+
Interactivity

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.

Self Check

If you add a slicer filtering the Year = 2024 on the date table, which components update?

  • The KPI Card showing Total Sales updates to show sales only for 2024.
  • The Line Chart updates to show sales over time only within 2024.
  • The Table visual updates to show sales by weekday only for 2024 dates.
Key Result
Dashboard showing total sales and sales trends over time using a marked date table for accurate time analysis.