Cumulative percent of the year’s sales by month

Show what share of the full year’s sales had come in by the end of each month, with DATESYTD, ENDOFYEAR and DIVIDE.

You will learn to

  • Divide a running total by a full-period total
  • Get the whole year’s total from inside a month with ENDOFYEAR
  • Avoid the ALLEXCEPT trap with month rows

How it works

“By the end of June, how much of the year’s sales were already in?” is a **cumulative percent**: the year-to-date total divided by the whole year’s total. It climbs to 100% in December, and its shape tells you how front- or back-loaded the year is.

The top of the fraction is `[Sales YTD]`. The bottom is harder, because inside the June row only June is visible. One neat trick: the YTD **on 31 December** is the full year. `ENDOFYEAR('Date'[Date])` returns that single date for the row’s year, so evaluating the YTD measure there gives the year’s total from any month.

A tempting alternative is `ALLEXCEPT('Date', 'Date'[Year])`. It only keeps a filter that is placed **directly** on Year. A month row filters Month Year, not Year, so ALLEXCEPT throws everything away and divides by both years combined.

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

Share of Year So Far (Units) = DIVIDE(TOTALYTD([Total Quantity], 'Date'[Date]), CALCULATE([Total Quantity], DATESYTD(ENDOFYEAR('Date'[Date]))))