Compare each region to the best region with MAXX and ALL

Show every region as a percent of the top region’s sales, iterating ALL(Customer[Region]) with MAXX — and why the measure inside matters.

You will learn to

  • Find the best value across all regions from inside one region’s row
  • Iterate ALL on a column so other filters still apply
  • Use a measure inside the iterator so context transition happens

How it works

To compare a row with the **best** row, you need the best value while standing in any row. `MAXX(table, expression)` works out the expression once per row of the table and keeps the highest.

The table is `ALL(Customer[Region])`: all four regions, ignoring the row’s own Region filter. Clearing just the column, not the whole Customer table, means a Segment or Category slicer still applies, so you compare like with like.

Careful with the expression. `[Total Sales]` is a measure, so for each region MAXX turns that region into a filter (context transition) and gets its sales. Writing `SUM(Sales[Amount])` instead skips that step: every “region” returns the row’s own total, and every row shows 100%.

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

Best Month Sales = MAXX(ALL('Date'[Month Year]), [Total Sales])