ABC analysis and the Pareto principle: the method step by step, in Excel and Power BI

Published · Updated · 15 min read

Dylan Arnaud, founder of Datafuji

ABC analysis sorts items, customers or suppliers into three groups by their weight in a total, applying the Pareto principle: a few items make up most of the value. You sort by descending value, add up the shares, then cut, by convention, at 80% (class A) and 95% (class B).

In our fictional company, 95 of 400 SKUs make 80% of revenue.

What is the Pareto principle, and how does it work?

The Pareto principle is the observation that, in many sets, a small share of the items accounts for the largest share of the total: a few customers, a few products, a few causes of failure.

Joseph Juran, the quality engineer who formulated it, put it in one phrase: there are the “vital few” and the rest. Juran first called the rest the “trivial many,” a phrase that later became the “useful many.”

Vilfredo Pareto, an Italian economist, studied the distribution of income in the late 19th century: in Britain first, then in Prussia, Saxony, Paris and Italian cities. He found the same pattern of concentration everywhere.

The move into management came from Juran, in his Quality Control Handbook of 1951. In 1974 he admitted giving Pareto’s name to the principle and wrote that, as a universal rule, it “was not original with Pareto.” He added that his cumulative curves should have been named after Lorenz.

In statistics, the “Pareto distribution” is also a probability distribution that describes rare but very large values. That is not the topic here: in management, we mean the rule of thumb.

The 80/20 rule

The 80/20 rule says that roughly 20% of causes produce 80% of effects. Both numbers are an order of magnitude, not a constant: they do not have to add up to 100, and every data set has its own.

In our example, the top 80 SKUs, 20% of the 400, make 76.7% of revenue; it takes 95 to reach 80%. Other data will give 10/70 or 30/90. The only way to know your own ratio is to calculate it.

What is ABC analysis (the ABC method, or ABC classification)?

ABC analysis, or ABC classification, sorts the items of a set into three classes by their cumulative share of a total, so that each class gets management effort in proportion to its weight.

It answers a simple management question: where to focus when you cannot watch everything closely. It applies to inventory items, products sold, customers, suppliers or spend categories.

ClassWhat it holds (80% and 95% thresholds)In our exampleHow to manage it
AThe items that make the first 80% of value95 SKUs (23.75%), €18,798k (80.0%)Close monitoring, frequent review, case-by-case decisions
BThe next 15%156 SKUs (39%), €3,522k (15.0%)Regular monitoring, rules by product family
CThe last 5%149 SKUs (37.25%), €1,180k (5.0%)Simple, automatic rules, rare review

The company in our example is fictional: a distribution and services SME (small or mid-sized business) with €23,500k of revenue and €14,500k of purchases. For this page, we spread its sales over 400 SKUs (stock keeping units), with total gross profit of €9,000k (revenue minus purchases, with no change in inventory).

Not to be confused with activity-based costing

The same letters name a cost accounting method, activity-based costing. It allocates overhead according to the activities that trigger it (an order, a machine setup, a delivery), and has nothing to do with an 80/20 ranking.

If your question is about the cost of a product, what you need is activity-based costing in cost accounting; the cost price calculator also summarizes it.

How do you do an ABC analysis, step by step?

In five steps: choose the object and the criterion, extract one value per item, sort from largest to smallest, calculate each row’s share and running total, then cut at the thresholds.

1. Choose the object, the criterion and the period

The object is what you classify: SKUs, customers, suppliers. The criterion is the amount that measures their weight: revenue, gross profit, consumption value, spend. The period is usually the last twelve months, to smooth out seasons. To rank on gross profit, first work it out per SKU with the margin calculator.

The criterion depends on the decision the analysis has to inform:

DecisionWhat is classifiedCriterion
Replenish and count inventoryInventory itemsConsumption value at cost
Allocate sales effortCustomers or products soldGross profit
Negotiate with suppliersSuppliers or spend categoriesSpend excl. VAT
Measure dependenceCustomersRevenue excl. VAT

2. Extract one value per item

One row per item, two columns: the identifier and the amount. The extract comes from the ERP (see Power BI and your ERP), the sales system or the accounting software. Credit memos are deducted; rows at zero are set aside.

To work through the example yourself, download the 400 SKUs of the example (CSV): comma separator, amounts in euros, fictional data.

3. Sort by descending value

The first row is the item that weighs the most. In the example, it is SKU R-121, with €963,516 of revenue.

4. Calculate the share and the running total

The share is the row’s amount divided by the total. The running total, or cumulative share, is the sum of the shares from the first row down to the current row, inclusive.

Share = amount ÷ total
Cumulative share (row n) =
  share 1 + share 2 + … + share n

5. Cut at the thresholds

A row is in A as long as its cumulative share stays at or below 80%, in B up to 95%, in C beyond. The row that crosses a threshold falls into the next class. That is the convention of SQLBI’s ABC pattern (Alberto Ferrari and Marco Russo, introduced below); pick one convention and stick with it.

Here is the top of the example’s sorted table, then the rows on either side of each threshold:

RankSKURevenue excl. VATShareCumulativeClass
1R-121€963,5164.10%4.10%A
2R-142€952,6284.05%8.15%A
3R-036€853,1913.63%11.78%A
10R-297€499,2852.12%29.81%A
95R-299€46,5730.20%79.99%A
96R-163€46,3000.20%80.19%B
251R-066€11,3650.05%94.98%B
252R-126€11,3640.05%95.03%C
400R-253€5,2070.02%100.00%C

The top ten SKUs alone make €7,005k, or 29.8% of revenue. Plotted in full, this running total gives the ABC curve, which you can read at a glance.

ABC curve of the example company’s 400 SKUs. Horizontal axis: share of SKUs, from 0 to 100%; vertical axis: cumulative share of revenue, from 0 to 100%. The curve rises very fast, then flattens. It reaches 80% of revenue at 23.75% of SKUs (95 SKUs, class A, €18,798k), then 95% at 62.75% of SKUs (251 SKUs, class B adds 156 for €3,522k). The last 149 SKUs, class C, make 5%, or €1,180k. A dashed diagonal shows what an equal split would look like.ABC curve of the example company’s 400 SKUs. Horizontal axis: share of SKUs, from 0 to 100%; vertical axis: cumulative share of revenue, from 0 to 100%. The curve rises very fast, then flattens. It reaches 80% of revenue at 23.75% of SKUs (95 SKUs, class A, €18,798k), then 95% at 62.75% of SKUs (251 SKUs, class B adds 156 for €3,522k). The last 149 SKUs, class C, make 5%, or €1,180k. A dashed diagonal shows what an equal split would look like.
A quarter of the SKUs make 80% of revenue; more than a third make only 5%.

The shape of the curve already tells the story: the faster it rises, the more concentrated revenue is. A curve close to the diagonal would mean every SKU weighs about the same, and that an ABC analysis adds nothing.

Calculating the Gini coefficient of an ABC analysis

The Gini coefficient sums up this concentration in a single number. INSEE, France’s national statistics office, defines it as an indicator that ranges from 0, perfect equality, to 1, extreme inequality. On an ABC curve drawn in a square with sides of 1, it is calculated from the area under the curve.

Gini = 2 × area under curve − 1
Area ≈ sum of trapezoids
  (cum. n−1 + cum. n) ÷ 2 ÷ N
Example: 2 × 0.853 − 1 = 0.71

The trapezoids are calculated in the spreadsheet, one row per SKU, with N the number of SKUs (400 here). The coefficient of 0.71 is tracked like any KPI, year over year: if it rises, revenue is concentrating on fewer SKUs.

Which thresholds should you choose: 80/95, 70/90 or others?

No standard sets the thresholds: 80% and 95% are a common practice, 70% and 90% are used in SQLBI’s ABC pattern for Power BI. Choose them based on what your teams can follow, then keep them from one analysis to the next.

The choice changes the size of class A a lot. On our 400 SKUs, the two conventions give very different classes.

Two horizontal stacked bars of 400 SKUs each. With 70% and 90% thresholds: 57 SKUs in class A (69.7% of revenue), 116 in B (20.2%), 227 in C (10.0%). With 80% and 95% thresholds: 95 in A (80.0%), 156 in B (15.0%), 149 in C (5.0%). Class A goes from 57 to 95 SKUs depending on the convention.Two horizontal stacked bars of 400 SKUs each. With 70% and 90% thresholds: 57 SKUs in class A (69.7% of revenue), 116 in B (20.2%), 227 in C (10.0%). With 80% and 95% thresholds: 95 in A (80.0%), 156 in B (15.0%), 149 in C (5.0%). Class A goes from 57 to 95 SKUs depending on the convention.
Same data, different convention: class A goes from 57 to 95 SKUs.

With 70/90, class A fits in 57 SKUs, which one person can follow closely; class C holds 227. With 80/95, class A grows to 95 SKUs and class C shrinks to the last 149 SKUs.

Other splits exist. Some set the classes by number of items, for example the top 20% in A and the next 30% in B. This rule gives a class A of constant size but varying weight: in our example, 80 SKUs and 76.7% of revenue.

To decide, start from capacity. If the buyer can review 60 SKUs a week, a class A of 95 will not get reviewed. Test two sets of thresholds on the file, compare class sizes with what the team can handle, and write the chosen rule next to the table.

How do you do an ABC analysis in Excel?

With three formula columns: sort the table, calculate the share, then the running total with a sum whose start is anchored, and classify with IF. Excel’s Pareto chart then draws the curve.

Open the example CSV: SKU in column A, revenue in B, margin in C, from row 2 to row 401. Format the range as a table (Ctrl+T), then sort column B from largest to smallest (Data > Sort).

Then add three columns, D for the share, E for the cumulative share and F for the class:

Share (D2):
=B2/SUM($B$2:$B$401)
Cumulative (E2):
=SUM($B$2:B2)/SUM($B$2:$B$401)
Class (F2):
=IF(E2<=80%,"A",IF(E2<=95%,"B","C"))

The $ sign anchors the start of the range: copied down, the formula in E3 becomes SUM($B$2:B3), and so on. Count by class with =COUNTIF(F2:F401,"A"), which should return 95 on the example file.

To cross the classes with other columns (product family, supplier), a pivot table on top of this table counts and sums by class in a few drags.

Building a Pareto chart in Excel

Select the SKUs and their revenue, then Insert > Insert Statistic Chart and, under Histogram, Pareto. Microsoft describes this chart as columns sorted in descending order and a line representing the cumulative total percentage.

The Pareto chart is available in Excel for Microsoft 365, Excel 2021 and Excel 2024, on Windows and Mac. Excel sorts the bars itself: the source does not need to be sorted.

With 400 SKUs, the bars turn into unreadable lines. Two fixes: plot only the top 30, or plot the curve alone (a line chart on column E), like the example’s ABC curve. The Pareto chart works best with about ten causes, as in its original quality use.

The workbook holds up as long as one person rebuilds it. If it has to be rebuilt every quarter from a new export, record the cleanup in Power Query, or move to an Excel dashboard fed by a query. Our comparison Power BI vs. Excel helps choose the tool.

How do you do an ABC analysis in Power BI?

With a calculated column when the class should stay fixed between two refreshes, or with a measure when it should follow the report’s filters. The Pareto chart is built with the line and clustered column chart visual.

The formulas below are written in DAX (Data Analysis Expressions), Power BI’s calculation language. They adapt the ABC pattern by Alberto Ferrari and Marco Russo (SQLBI), published in 2020 in DAX Patterns, to our 80% and 95% thresholds.

The model has two tables: Sales, one row per invoice line, and Product, one row per SKU, related by the SKU (a star schema; see also the Power BI data model). The base measure adds up revenue:

Revenue = SUM ( Sales[Amount] )

The class as a calculated column

The column is calculated in the Product table, at each model refresh. For each SKU, it adds up the revenue of every SKU that sells at least as much, then divides by the total:

ABC Class =
VAR RevSku = [Revenue]
VAR Skus =
    ADDCOLUMNS (
        ALL ( 'Product' ),
        "@Rev", [Revenue]
    )
VAR Cumul =
    SUMX (
        FILTER (
            Skus,
            [@Rev] >= RevSku
        ),
        [@Rev]
    )
VAR Total = SUMX ( Skus, [@Rev] )
VAR Pct = DIVIDE ( Cumul, Total )
RETURN
    SWITCH (
        TRUE (),
        Pct <= 0.8, "A",
        Pct <= 0.95, "B",
        "C"
    )

The filter “[@Rev] >= RevSku” replaces Excel’s sort: the SKUs that sell at least as much are those above it in the sorted table. The column then goes into a slicer or onto the rows of a matrix, like a product family. Each SKU’s rank, useful in a table, comes from the RANKX function, which ranks in descending order by default.

The running total as a measure, for the Pareto chart

For the line of the Pareto chart, the running total has to follow the report’s filters: a family, a region, a year. ALLSELECTED limits the calculation to the SKUs still visible after those filters:

% Cumulative Revenue =
VAR RevSku = [Revenue]
VAR Skus =
    ADDCOLUMNS (
        ALLSELECTED (
            'Product'[SKU]
        ),
        "@Rev", [Revenue]
    )
VAR Cumul =
    SUMX (
        FILTER (
            Skus,
            [@Rev] >= RevSku
        ),
        [@Rev]
    )
VAR Total = SUMX ( Skus, [@Rev] )
RETURN
    IF (
        NOT ISBLANK ( RevSku ),
        DIVIDE ( Cumul, Total )
    )

In the line and clustered column chart, put 'Product'[SKU] on the x-axis, [Revenue] in the columns and [% Cumulative Revenue] on the line, on the secondary y-axis. Sort the axis by [Revenue], descending: the line then rises steadily toward 100%.

Mockup of a Power BI report page, with the example’s fictional figures. On the left, three cards: class A, 95 SKUs, €18,798k, 80.0%; class B, 156 SKUs, €3,522k, 15.0%; class C, 149 SKUs, €1,180k, 5.0%. On the right, a Pareto chart: revenue columns sorted from highest to lowest, from R-121’s €964k down to the last SKUs, and a running-total line on the secondary axis that reaches 80% at the 95th SKU and 95% at the 251st, where two dashed vertical lines separate zones A, B and C.Mockup of a Power BI report page, with the example’s fictional figures. On the left, three cards: class A, 95 SKUs, €18,798k, 80.0%; class B, 156 SKUs, €3,522k, 15.0%; class C, 149 SKUs, €1,180k, 5.0%. On the right, a Pareto chart: revenue columns sorted from highest to lowest, from R-121’s €964k down to the last SKUs, and a running-total line on the secondary axis that reaches 80% at the 95th SKU and 95% at the 251st, where two dashed vertical lines separate zones A, B and C.
Three cards and a Pareto chart: the page a buyer reads every month.

A class measure follows from the previous one: IF ( NOT ISBLANK ( [% Cumulative Revenue] ), SWITCH ( TRUE (), [% Cumulative Revenue] <= 0.8, "A", … ) ). It shows each SKU’s class in a table, recalculated with the filters. SQLBI also describes how to total revenue by dynamic class, with a table of class boundaries.

Power BI’s visual calculations also offer RUNNINGSUM, a running total calculated inside the visual. We have not tested this route for an ABC analysis: the measure above remains the documented reference.

Column, snapshot table or measure: which one?

SQLBI describes three ways to calculate the class, from fastest to most flexible:

MethodWhen the class changesUse it toLimit
Calculated columnAt each refresh, over all the loaded historyGet a fixed class, used in slicers and other tablesFollows none of the report’s filters
Snapshot table by yearOne class per SKU and per year, calculated at refreshCompare classes year over yearA little more modeling
Dynamic measureWith every filterClassify within a family or a regionAccording to SQLBI, too slow for an interactive report beyond about 10,000 products

For an SME with a few hundred to a few thousand SKUs, the calculated column and the running-total measure are enough. The other measure patterns (year-to-date, share of total) are covered in our guide to DAX in Power BI.

Which mistakes skew an ABC analysis?

Three mistakes come up often: classifying on revenue for a decision about margin, freezing a class once and for all, and judging new SKUs over a period too short for them.

Classifying on revenue for a margin decision

Revenue tells you what sells, gross profit what pays. Rerun on margin, the same analysis changes the class of 42 SKUs out of 400 in our example.

Cross table of three rows and three columns: the class on revenue in rows, the class on gross profit in columns, 80% and 95% thresholds. Class A on revenue: 87 stay A, 8 move to B. Class B: 11 move to A, 134 stay B, 11 move to C. Class C: 12 move to B, 137 stay C. The 358 SKUs on the diagonal keep their class; 42 change, highlighted in orange. Examples: R-212, 69th on revenue with a 24.8% margin, drops to B; R-163, 96th with 52.1%, moves up to A.Cross table of three rows and three columns: the class on revenue in rows, the class on gross profit in columns, 80% and 95% thresholds. Class A on revenue: 87 stay A, 8 move to B. Class B: 11 move to A, 134 stay B, 11 move to C. Class C: 12 move to B, 137 stay C. The 358 SKUs on the diagonal keep their class; 42 change, highlighted in orange. Examples: R-212, 69th on revenue with a 24.8% margin, drops to B; R-163, 96th with 52.1%, moves up to A.
On margin, 42 SKUs change class: 23 move up, 19 move down.

SKU R-212 ranks 69th on revenue (€71,193), but with a 24.8% margin it is only 100th on gross profit. Conversely, R-163 ranks 96th on revenue and moves up to A on margin, with a 52.1% rate.

Mixing the two criteria, a column classified on revenue and a pricing decision, leads you to defend SKUs that bring volume without paying. For margin, the gross margin calculator recaps the definitions.

A class calculated once and for all

Sales move, so do classes. A class calculated in January and never revisited ends up protecting declining SKUs and overlooking rising ones. Recalculate at least every quarter, over a rolling twelve months.

The most misleading case is an SKU launched mid-period. Suppose an SKU launched on October 1 that sells €10k a month.

Two horizontal bars to scale on a revenue axis, with two vertical lines: the class B threshold at €11,365 and the class A threshold at €46,573 (revenue of the last SKU in each class). Orange bar: €30k, the three months from October to December, rank 132, class B. Green bar: €120k, the same pace of €10k a month over twelve months, rank 49, class A.Two horizontal bars to scale on a revenue axis, with two vertical lines: the class B threshold at €11,365 and the class A threshold at €46,573 (revenue of the last SKU in each class). Orange bar: €30k, the three months from October to December, rank 132, class B. Green bar: €120k, the same pace of €10k a month over twelve months, rank 49, class A.
Judged on three months, a new SKU looks average; at its real pace, it would be in A.

Over the calendar year, its €30k puts it 132nd, in class B. At its pace, it would make €120k over twelve months, which is 49th place, in class A. Set new SKUs aside for their first months, or classify them on their average monthly revenue.

Other pitfalls

  • Classifying on quantity. A €0.10 screw sold by the thousands would outrank a €20,000 machine. ABC analysis is done on value, except for a materials-handling question.
  • Forgetting credit memos. A heavily returned SKU looks like an A on invoices and drops once credit memos are deducted.
  • Mixing levels. Classifying families and SKUs in the same table gives meaningless classes: a family always weighs more than an SKU.
  • Too short a period. Over one month, a single large quote pushes an SKU into A. Twelve months smooth out seasons and one-off orders.
  • Treating class C as useless. Juran’s “useful many” matter: a missing class C part can hold up a class A order.

How is ABC analysis used in inventory control, sales and purchasing?

Match the effort to the class: watch each A item closely, manage B items by rules, automate C items. The same logic applies to inventory, customers and suppliers, with different decisions.

AreaClass AClass BClass C
Inventory (on consumption value)Forecast by SKU, calculated safety stock, frequent cycle countsReorder point, monthly reviewBulk orders, generous safety stock, yearly count
Customers (on margin)A named contact, account review, dependence trackingScheduled follow-up, growth targetsInside sales, standard terms
Purchasing (on spend)Annual negotiation, second supplier, contractPeriodic competitive biddingConsolidation with few suppliers, simplified ordering

In inventory, the stake is cash: lower safety stock on A items frees up money, generous stock on C items costs little and avoids avoidable stockouts. Inventory turnover then measures how many times inventory turns over in a year, class by class; the cash gain shows up in the working capital requirement.

On the customer side, ABC analysis measures dependence: if three customers make 40% of margin, losing one of them shows in the bottom line. The sales dashboard tracks these customers every month.

On service, the class sets a different service level: aim for zero stockouts on A items, accept a lead time on C items. The OTIF rate (on time, in full) measures it.

ABC-XYZ analysis, for demand variability

XYZ analysis adds a second question: is demand steady? It classifies each SKU by the coefficient of variation of its monthly quantities, the standard deviation (population, STDEV.P in Excel) divided by the mean.

CV = standard deviation ÷ mean
Steady demand: 100, 96, 104…
  CV = 0.02 → X
Erratic demand: 0, 240, 0…
  CV = 1.30 → Z

The example’s two series each total 1,200 units over twelve months. The first varies from 96 to 104 a month; the second alternates months at zero with orders of 120 to 360 units. The boundaries between X, Y and Z are not standardized: set them on your own file.

Crossed, the two analyses give nine cells, and one course of action per cell:

Value classX, steady demandY, variable demandZ, erratic demand
AFine-grained forecast, just in timeForecast reviewed monthly, calculated safety stockOrder on demand, or a contract with the customer
BAutomatic replenishmentReorder pointLimited stock, lead time quoted to the customer
CBulk orders, little reviewGenerous safety stockOrder on demand, or drop from the catalog

An AX SKU (high value, steady demand) is managed finely by forecast; a CZ SKU (low value, erratic demand) does not deserve permanent stock.

Where to start

A first ABC analysis takes half a day in Excel: an export of twelve months of sales, the sorted table, the curve. Start with the criterion that serves the decision at hand, then show the three classes to the people who decide.

When the analysis has to come back every month, on revenue and on margin, for several readers, it belongs in a Power BI dashboard connected to the ERP. Our fixed-price packages, from simplest to most complete, are on the pricing page.

Frequently asked questions

How is ABC analysis used in inventory control?

Classify items on their annual consumption value at cost. Then set a different policy per class: forecasts, calculated safety stock and frequent cycle counts for A items; a reorder point and a monthly review for B items; bulk orders, generous safety stock and a yearly count for C items.

What is the 80/20 rule in sales?

It is the idea that a minority of customers or products brings in most of the revenue, often summed up as “20% of customers make 80% of sales.” The real split is measured on your own invoices. It helps allocate sales time, watch dependence on the largest accounts, and spot customers that are growing.

What is ABC cost analysis?

It is a different method that shares the same letters: activity-based costing. It allocates overhead to the activities that trigger it (an order, a machine setup, a delivery) rather than spreading it on volume. It has nothing to do with sorting items into A, B and C classes.

ABC analysis vs. Pareto chart: what is the difference?

The Pareto chart is the picture: bars sorted from highest to lowest, plus the line of their running total. ABC analysis is the decision that follows: cutting that curve into three classes and managing each one differently. You can draw a Pareto chart without classifying, but classifying without looking at the curve risks badly placed thresholds.

Do you always need three classes?

No. Three is the norm because it matches three ways of managing: tight, standard, simplified. You can add a class D for items with no sales in the period, which raises a different question: keep them, clear them out or drop them from the catalog.

Let’s talk about your reporting.

A 30-minute video call with Dylan Arnaud. You come away with a clear scope and a fixed price.

Dylan Arnaud, Power BI consultant and founder of Datafuji
Dylan ArnaudFounder · your single point of contact