First-half (H1) sales for every year

Total January to June for each year with a filter on the month number, and see why a fixed date range would get stuck in one year.

You will learn to

  • Filter a measure to a range of months
  • Explain why a month filter keeps the year from the row
  • Explain why a filter on the Date column replaces it

How it works

Many businesses report in halves: **H1** is January to June, **H2** is July to December. `'Date'[Month]` holds the month number from 1 to 12, so “the first half” is just a range of month numbers.

A comparison such as `'Date'[Month] >= 7` inside `CALCULATE` replaces any filter on the Month column only. The year from the row stays put, so the same measure shows H1 2024 in the 2024 row and H1 2025 in the 2025 row.

You could also write a fixed range with `DATESBETWEEN('Date'[Date], DATE(2025, 1, 1), DATE(2025, 6, 30))`. That returns exactly those days, and because it filters `'Date'[Date]` it **replaces every filter on the Date table**, the year included. Every row would show H1 2025. Use fixed dates for one specific period; use the month number when the measure should follow the year.

Practice it hands-on with a real data model and a live report that updates as you type.

H2 Quantity = CALCULATE([Total Quantity], 'Date'[Month] >= 7)