Pareto analysis: cumulative percent of sales by customer
Rank customers from biggest to smallest and show the running share of sales, the classic 80/20 Pareto curve, with FILTER, SUMX and ALL.
You will learn to
- Build a running total over customers ranked by sales
- Find “every customer at least as big as this one” with FILTER and ALL
- Turn the running total into a cumulative percentage
How it works
The **Pareto principle** says a small share of customers often brings in most of the sales: the famous 80/20. To check it, line the customers up from biggest to smallest and add up as you go. The running share next to each customer says “this customer and everyone bigger make up X% of sales”.
A running total over a ranking has no date column to lean on, so build it from the ranking itself. For the current customer, keep their sales in a variable. Then `FILTER(ALL(Customer[Customer]), [Total Sales] >= CurrentSales)` is every customer who sold **at least as much**: the customer and everyone ranked above them. Summing `[Total Sales]` over that table with `SUMX` gives the running total.
Divide by the sales of all customers, `CALCULATE([Total Sales], ALL(Customer[Customer]))`. Because ALL only clears the customer column, a Year slicer still applies, and the curve is redrawn for that year. (Ranking with RANKX and summing the customers with a lower or equal rank gives the same answer, but it is slower.)
Practice it hands-on with a real data model and a live report that updates as you type.
Cumulative Product Sales =
VAR CurrentSales = [Total Sales]
RETURN SUMX(FILTER(ALL(Product[Product]), [Total Sales] >= CurrentSales), [Total Sales])