Find the best sales day with MAXX

Get the highest single-day sales total for any region, category or year by iterating the dates with MAXX.

You will learn to

  • Iterate the visible dates with VALUES
  • Tell the best day apart from the biggest order line

How it works

The biggest **order line** and the best **day** are different questions. A day can hold several orders, so the best day is usually bigger than any single line.

`MAX(Sales[Amount])` and `MAXX(Sales, Sales[Amount])` look at order lines one at a time. To compare days, iterate one row per date with `VALUES('Date'[Date])` and evaluate a measure for each.

Because the expression is a measure, context transition filters it to the current date. MAXX keeps the highest daily total it finds, and the visual’s own filters (a region, a year) still apply.

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

Best Customer Sales = MAXX(Customer, [Total Sales])