Find the biggest sale with MAX and MIN
Go beyond totals: find the largest single order line, the smallest one, or the typical one with MAX, MIN and AVERAGE.
You will learn to
- Pick the right aggregation for the question
- Find the largest value in a column with MAX
- Know when to use MIN and AVERAGE instead
How it works
`SUM` is only one way to boil a column down to a single number. DAX has a few siblings that work exactly the same way — you give them a column, they look at the visible values:
- `MAX(column)` — the **largest** value - `MIN(Sales[Amount])` — the **smallest** value - `AVERAGE(Sales[Amount])` — the **typical** value (the total divided by how many there are)
Each row of `Sales` is one order line, so the largest value in its Amount column answers “what was our single biggest sale?”. Like every measure, it respects the visual’s filters: in the Clothing bar it only looks at clothing sales.
Practice it hands-on with a real data model and a live report that updates as you type.
Smallest Sale = MIN(Sales[Amount])