The “Others” bucket: sales outside the top N customers with EXCEPT

Build the “all other customers” number that sits under a Top N list, by removing the top customers from the visible ones with EXCEPT.

You will learn to

  • Keep a TOPN table in a variable
  • Subtract one table from another with EXCEPT
  • Use the remaining customers as a CALCULATE filter

How it works

A Top N report is honest only if it also shows what’s left: “Top 5 customers: $75,374. All others: $238,217.” Without the Others line, readers can’t tell whether the top five are most of the business or a sliver of it.

`EXCEPT(table1, table2)` returns the rows of the first table that are **not** in the second. Both tables need the same columns. So `EXCEPT(VALUES(Customer[Customer]), TopCustomers)` is every visible customer except the top ones, and because it keeps the `Customer[Customer]` column it still works as a CALCULATE filter.

Read N from the slicer exactly as the **Top N Customer Sales** measure does, build the top customers with TOPN in a variable, and subtract them. Subtracting the two measures gives the same dollars, but the EXCEPT table is the list of “other” customers itself: you can count it, average it or show its names.

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

Customers Outside the Top 3 Products =
VAR TopProducts = TOPN(3, VALUES(Product[Product]), [Total Sales])
RETURN CALCULATE([Customers], EXCEPT(VALUES(Product[Product]), TopProducts))