QlikSense cost of poor quality

Publications

Qlik Sense Cost of Poor Quality: Find the Hidden Factory Draining Your Profit

Hector Pincheira

Hector Pincheira

CIO | CTO
Digital Strategy & Technology Innovation

items

There is a factory inside your factory that appears on no org chart. It has no supervisor, it invoices nothing, it never shows up on the production board, and yet it consumes shifts, raw material and energy every single day. It is the factory that produces what is later scrapped or reworked. The QlikSense cost of poor quality exists to find it, put a number on it and tell you exactly where it is draining your margin. Because what is not measured is not only never improved: it is paid for in silence.

QlikSense cost of poor quality Pareto of scrap

The figure that should keep any operations manager awake is this: the cost of poor quality consumes between 15% and 20% of revenue in many plants, with a range going from 5% to 35%, against less than 5% in world-class companies. Translated: one out of every five pesos your company invoices could be funding defects. And almost nobody sees it, because the accounting system spreads it across a thousand accounts. In this article I show you how to make it visible with QlikSense.

The real problem: the cost finance never reports in full

The cost of poor quality (COPQ) has a perverse catch: the visible part is the tip of the iceberg. The scrap that gets weighed and the rework that gets recorded are usually barely a fraction of the real damage. The studies quantify it: the true bill is typically 3 to 5 times the visible cost of scrap, and the first honest analysis usually lands at 2 to 4 times what finance reported.

Why the difference? Because scrap drags along hidden costs nobody assigns to quality: lost machine capacity, raw material consumed with no return, energy, operator time spent redoing work, the order that reaches the customer late. Pure scrap and rework run from 0.6% of revenue in the best plants to 2.2% in the worst. But that number, big as it already is, hides much more behind it.

⚠️ Common error: Looking only at weighed scrap. A line with 2% scrap can hide 15% rework, leaving barely 83% first-pass yield. The defect that gets fixed never shows up on the scale, but it costs the same.

The good news: it is one of the problems with the highest return when you attack it with data. Plants typically target a 30% to 50% reduction in 12 months starting from a baseline that is genuinely measured, and those implementing digital validation and feedback loops cut cost per defect by up to 30%.

The QlikSense solution: modeling the cost of poor quality

To attack the hidden factory you need three things in your model: a quality fact that records every defect event, a cost assigned to each defect type, and an indicator that translates it all into money and into first-pass yield. QlikSense does this elegantly with ApplyMap() and Set Analysis.

Step 1: map the cost by defect type

The first mistake is assuming every defect costs the same. It does not. A cosmetic scratch and a structural part out of tolerance live in different universes. We load a cost table and apply it with ApplyMap() to avoid inflating the model with a JOIN.

// Unit cost map by defect type
MapCostoDefecto:
MAPPING LOAD
    TipoDefecto,
    CostoUnitario
FROM [lib://Calidad/costos_defecto.qvd] (qvd);
HechosCalidad:
LOAD
    Fecha,
    Linea,
    Producto,
    TipoDefecto,
    Cantidad,
    Reprocesado,   // 1 = recovered, 0 = scrapped
    // Event cost: quantity x defect unit cost
    Cantidad * ApplyMap('MapCostoDefecto', TipoDefecto, 0) AS CostoNoCalidad
RESIDENT Inspecciones;

The third argument of ApplyMap, that 0, is your safety net: if a defect type shows up with no cost defined, it does not break the load or invent a value; it assigns zero and lets you spot it. CostoNoCalidad is precalculated per event, ready to be summed across any dimension without recalculating.

Step 2: calculate the real first-pass yield

First-pass yield (FPY) measures the percentage that came out right the first time, with no rework and no scrap. It is the indicator that exposes the hidden factory, because it penalizes both what was thrown away and what had to be redone.

// First-Pass Yield: units good the first time / total produced
Sum( {<TipoDefecto = {'Sin defecto'}>} Cantidad )
/
Sum( Cantidad )
// Cost of poor quality as % of period sales
Sum(CostoNoCalidad) / Sum( {1} Venta )

The first expression uses Set Analysis to count only the units with no defect over the total. The second translates COPQ into the only thing that moves a board: percentage of sales. The {1} in the denominator ignores selections so the ratio is always compared against total sales for the period, not against a filtered subset.

Step 3: the Pareto of causes that tells you where to attack first

Not every defect deserves your attention. The 80/20 rule almost always holds: a handful of causes explains most of the cost. A Pareto with Aggr() and Rank ranks the causes by economic impact and reveals where to put the improvement team.

// Ranking of causes by cumulative cost (for Pareto curve)
RangeSum(
   Above(
      Sum(CostoNoCalidad),
      0,
      RowNo()
   )
)
/
Sum( TOTAL CostoNoCalidad )

With the table sorted from highest to lowest cost, Above() walks through the preceding rows and RangeSum() accumulates them; dividing by the total with Total you get the cumulative percentage. The line that crosses 80% tells you how many causes concentrate four fifths of the problem. There, and only there, does your action plan begin.

💡 Key point: The dashboard should not show «how much scrap we had». It must answer «which three causes, on which line, are costing us the most margin this month, and how much do we recover if we close them». That is the difference between reporting and deciding.

Business impact: margin you already have

Here is what makes this analysis unique: the money you recover requires no extra sales and no price increases. It is already inside, you already paid for it. Reducing COPQ is the cleanest way to expand margin, because every point the cost of poor quality drops falls almost entirely to the bottom line.

Put concrete numbers on it. A company with a COPQ of 15% of its revenue that brings it down to 10% with data and discipline frees up five points of margin without touching a single sale. In a mid-sized industrial operation, that is like merging the effect of a successful sales campaign with a cost cut, but without the risk of either one. The cost of poor quality dashboard turns an invisible problem into the most underestimated profitability lever in the plant.

Common Mistakes and How to Avoid Them

The first is measuring only scrap and forgetting rework. Rework does not show up on the scale but it consumes capacity. If your FPY does not include rework, you are lying to yourself.

The second is costing every defect the same. Without a cost per type, your Pareto ranks by quantity, not by impact, and you end up chasing the most frequent defect instead of the most expensive one.

The third is reporting COPQ in units and not in money. The board does not react to «3,400 defective parts». It reacts to «this cost us the equivalent of 4% of the quarter’s margin».

The room is settling for the snapshot instead of the trend. A high COPQ in one month is noise; a sustained trend is a structural leak. Always design the time view alongside the point-in-time value.

Best practices from experience

Start with a baseline measured by machine, not by memory. The first honest analysis almost always hurts, because the real number exceeds the reported one by a factor of two to four. That initial blow is your legitimate starting point; without it, any «improvement» is cosmetic.

Connect quality to cost from the model, not from a separate spreadsheet. When the cost of poor quality lives in the same associative engine as sales, production and inventory, you can cross the leak with the customer, the shift or the raw material supplier, and that is where root causes appear. To see how this approach fits into a broader data strategy, explore the other resources at hectorpincheira.com.

Strategic conclusion

The hidden factory does not shut itself down. It keeps producing defects while nobody measures it, financed with the margin that should be profit. The QlikSense cost of poor quality is the flashlight that lights it up: it puts a price on every defect, reveals which causes concentrate the damage and translates it all into the language that moves decisions, money.

The question is not whether your plant has a hidden factory. They all do. The question is how much it costs you to keep not looking at it. And that, at last, is a figure you can calculate today.

Most Read

QlikSense Hierarchy: parent-child chart of accounts expanded by levels
QlikSense Hierarchy: the Chart of Accounts That Doesn't Add Up
QlikSense Sum TOTAL: share of each family over the total
QlikSense Sum TOTAL: the Percentage That Changes When You Filter
SAP Business One Inventory Revaluation - featured image of the tutorial
SAP Business One Inventory Revaluation: Fix Wrongly Loaded Costs
Empty chamber with wooden benches: the counterweight that required being present to be used
The Veto You Had to Say in Person: Your Decisions With No Counterweight
SAP Business One customizations - featured image of the pre-upgrade audit tutorial
SAP Business One Customizations: Pre-Upgrade Audit
SAP Business One Customer Concentration - featured image of the tutorial
SAP Business One Customer Concentration: Measure Your Risk with SQL

RELATED ARTICLES