Top 5 customer share with TOPN and CALCULATE

Measure how concentrated your business is: what share of sales comes from your five biggest customers in each region.

You will learn to

  • Use a TOPN table as a CALCULATE filter
  • Divide a top N total by the overall total
  • Keep the denominator in the same context as the numerator

How it works

A table can be a filter. `CALCULATE([Total Sales], TOPN(5, Customer, [Total Sales]))` first finds the five biggest customers, then evaluates sales with only those customers visible.

Divide that by `[Total Sales]` and you get **concentration**: the share of the business that depends on a handful of accounts. A high number is a risk worth knowing about.

Use `Customer`, not `ALL(Customer)`. In the North row, `Customer` holds North’s customers, so you get North’s top five. `ALL(Customer)` would pull in the company-wide top five, even those from other regions, and the share would no longer describe North.

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

Top 2 Product Share = DIVIDE(CALCULATE([Total Sales], TOPN(2, Product, [Total Sales])), [Total Sales])