Average monthly sales year-to-date with AVERAGEX

Calculate the average sales per month so far this year, a smooth run rate that ignores one-off spikes.

You will learn to

  • Average a measure over months with AVERAGEX and VALUES
  • Combine an iterator with a year-to-date filter
  • Read a run-rate line against monthly sales

How it works

“How much do we sell in a typical month this year?” is a **run rate**: the year-to-date total spread evenly over the months so far. It smooths out a record June or a quiet February.

`AVERAGEX(VALUES('Date'[Month Year]), [Total Sales])` walks through each visible month, works out that month’s sales, and averages the results. On its own it only sees the months in the current row.

Put the iterator inside `CALCULATE` with `DATESYTD('Date'[Date])` and the visible dates become “1 January up to now”. AVERAGEX then sees every month of the year so far, and the average grows or shrinks as each new month arrives.

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

Avg Monthly Sales QTD = CALCULATE(AVERAGEX(VALUES('Date'[Month Year]), [Total Sales]), DATESQTD('Date'[Date]))