M4 · Modeling · about 15 min
A Real Date Table
easyRuns by year from the Date table shows a third row with no year and 221 runs, and 2025 is 221 runs short. The Date table was built when the 2025 season was still in August and nobody extended it. It was also never marked as a date table.
Your task
Fix the Date table so that it covers every day of every season year (1 January 2024 to 31 December 2025), and mark it as a date table on its Date column. Keep the relationship from Games[Date] to 'Date'[Date]. Do not write a measure.
What the grader checks
You see the situations, not the expected numbers. The expected values are computed live from your file and the source data.
- T1Runs by year
One row per Date[Year], all teams. Every game must land on a real year: no blank row, and each year has all of its runs. - T2One team by year
Harbor Hawks, one row per Date[Year]. - C1Date is marked as a date table
The Date table is marked as a date table (Table tools > Mark as date table, on 'Date'[Date]). - C2Games relates to Date on the date
An active relationship from Games[Date] (many) to 'Date'[Date] (one).
Stuck?
Open one hint at a time.
Hint 1
Put Date[Year] in a table with total runs. Where do the runs on the blank row come from?
Hint 2
A game whose date is not in the Date table has nowhere to go, so it lands on a blank row. Look at the first and last dates the Date table's query generates.
Hint 3 (near-answer)
In Power Query, change the Date query's last day to #date(2025, 12, 31) and apply. Then Table tools > Mark as date table, choosing the Date column.
Show the editorial
Solve it first if you can: the editorial gives the answer away.
The trap
The Date table stops at 31 August 2025, but the season ran to the end of September. Every September game points at a date the Date table doesn't have. Power BI doesn't drop those rows: it puts them on a blank member, so a yearly view shows a third row with no year, and 2025 is short by exactly that amount. Marking the table as a date table doesn't help, because marking checks that dates are unique and contiguous, not that they cover the data.
The fix
Extend the Date query to cover full years, 1 January 2024 to 31 December 2025, then mark the table as a date table on its Date column.
Why it works
With every game date present, each Games row finds its date and the blank row disappears. Full calendar years keep time intelligence correct: year-to-date and same-period-last-year functions assume the whole year is there. Marking the table tells Power BI to use it for time intelligence and to treat a filter on 'Date'[Date] as a filter on the whole table.
A date table covers whole years and every date in the data. A blank row in a date visual means a date is missing.