Root Cause Analysis: How to Uncover Key Drivers Behind Your Metrics
When revenue or conversion drops, first prove the drop is real: complete data, an unchanged metric definition and two comparable periods. Then split the change into volume, conversion and order value, separate shifts in mix from real changes in rate, find the segment and funnel step where the rate moved, line that up with releases and events, and put a dollar figure on each driver so the drivers add up to the total. Finish with a short write-up that says how strong the evidence is behind each driver.
This is root cause analysis for business metrics (KPI root cause analysis): the 5 whys and fishbone diagrams were built for incidents and defects, and a KPI that moved needs arithmetic first. Below is the six-step method I use, with formulas, SQL you can copy and one fully worked example.
A root cause analysis example: a synthetic store
Every number in this post comes from a synthetic dataset we built for illustration, not customer data or product output: a store selling on desktop and mobile, whose revenue for the last four weeks (Monday 28 September to Sunday 25 October 2026) is down against the four weeks before (31 August to 27 September).
Synthetic store | Previous 4 weeks | Last 4 weeks |
|---|---|---|
Desktop sessions | 100,000 | 100,000 |
Mobile sessions | 100,000 | 120,000 |
Total sessions | 200,000 | 220,000 |
Desktop conversion (orders) | 3.0% (3,000) | 3.0% (3,000) |
Mobile conversion (orders) | 2.0% (2,000) | 1.5% (1,800) |
Overall conversion (orders) | 2.50% (5,000) | 2.18% (4,800) |
Average order value (both devices) | $76 | $74 |
Desktop revenue | $228,000 | $222,000 |
Mobile revenue | $152,000 | $133,200 |
Total revenue | $380,000 | $355,200 |
Revenue fell $24,800 (6.5%) while sessions rose 10%, conversion fell from 2.50% to 2.18% and the average order value (AOV) slipped $2. A naive read says mobile revenue fell $18,800 and desktop $6,000, so "it's mostly mobile". That is true but not useful: it doesn't say whether mobile lost traffic, conversion or basket size, and it understates the real problem by more than half.
Step 1: Verify the problem and define it clearly
Before you decompose anything, rule out the three usual impostors.
- Data freshness and completeness. Did the last load finish, is the latest day partial, are late records (refunds, offline payments, app events that sync later) still arriving? Count rows per day and, if rows carry a load time, check
MAX(loaded_at)per day. - Definition changes. Did someone change what "revenue" means (gross or net of refunds, tax, currency conversion, test orders), the tracking (a new consent banner, a renamed event, bot filtering) or the reporting time zone? On a chart, a definition change looks exactly like a business change.
- Comparable periods and seasonality. Compare periods of equal length that start on the same weekday: September has 30 days and October 31, so month over month is off by a day before anything happens. Check the same weeks last year and moving holidays such as Easter. A change inside the metric's normal week-to-week range may be noise.
-- Is the data complete? One row per day: look for gaps, partial days, odd counts.
SELECT
sales_date,
COUNT(*) AS row_count,
SUM(sessions) AS sessions,
SUM(orders) AS orders,
SUM(revenue) AS revenue
FROM daily_sales
WHERE sales_date >= DATE '2026-08-31'
GROUP BY sales_date
ORDER BY sales_date;
In the example: both periods are 28 days, Monday to Sunday, every day is loaded, the revenue definition did not change, and we assume the same weeks last year were flat. The problem statement: "Revenue for the four weeks to 25 October was $355,200, down $24,800 (6.5%) on the previous four weeks."
Step 2: Drill down into metric components
Most business metrics are a product or a sum of simpler ones. Write the metric tree (or KPI tree) down before you slice anything; it tells you which questions to ask.
- E-commerce revenue = sessions × conversion rate × average order value.
- Conversion rate = add-to-cart rate × checkout-start rate × checkout-completion rate.
- Change in recurring revenue = new + expansion − contraction − churn.
- Product revenue = units × price, summed over products (the price-volume-mix bridge finance teams use, worked through in our guide to AI for financial analysis).
Volume × conversion × order value
To turn a product into dollar effects, swap in one component at a time (sequential substitution). With S = sessions, C = conversion rate, A = AOV, 0 = the previous period and 1 = the last period:
- Volume effect = (S1 − S0) × C0 × A0
- Conversion effect = S1 × (C1 − C0) × A0
- AOV effect = S1 × C1 × (A1 − A0)
The three add up exactly to the revenue change, but the split depends on the order in which you swap. For an order-free answer, use the log form (LMDI): the effect of component X = L × ln(X1 / X0), where L = (R1 − R0) / (ln R1 − ln R0) and R is revenue. It also adds up exactly.
Step | Sessions × conversion × AOV | Revenue | Effect |
|---|---|---|---|
Start: previous 4 weeks | 200,000 × 2.500% × $76 | $380,000 | |
Swap in last sessions (volume) | 220,000 × 2.500% × $76 | $418,000 | +$38,000 |
Swap in last conversion | 220,000 × 2.182% × $76 | $364,800 | −$53,200 |
Swap in last AOV | 220,000 × 2.182% × $74 | $355,200 | −$9,600 |
Total change | −$24,800 |
The order-free LMDI split gives +$35,023 for volume, −$50,023 for conversion and −$9,800 for AOV. Different digits, same story: conversion is the problem, and the extra traffic hid part of it.
-- Revenue = sessions x conversion rate x average order value.
-- Swap in one component at a time: volume, then conversion, then AOV.
WITH labeled AS (
SELECT
*,
CASE
WHEN sales_date BETWEEN DATE '2026-08-31' AND DATE '2026-09-27' THEN 'prev'
WHEN sales_date BETWEEN DATE '2026-09-28' AND DATE '2026-10-25' THEN 'curr'
END AS period
FROM daily_sales
),
totals AS (
SELECT
SUM(CASE WHEN period = 'prev' THEN sessions END) AS s0,
SUM(CASE WHEN period = 'curr' THEN sessions END) AS s1,
SUM(CASE WHEN period = 'prev' THEN orders END) AS o0,
SUM(CASE WHEN period = 'curr' THEN orders END) AS o1,
SUM(CASE WHEN period = 'prev' THEN revenue END) AS r0,
SUM(CASE WHEN period = 'curr' THEN revenue END) AS r1
FROM labeled
)
SELECT
r1 - r0 AS total_change,
(s1 - s0) * (1.0 * o0 / s0) * (1.0 * r0 / o0) AS volume_effect,
s1 * (1.0 * o1 / s1 - 1.0 * o0 / s0) * (1.0 * r0 / o0) AS conversion_effect,
o1 * (1.0 * r1 / o1 - 1.0 * r0 / o0) AS aov_effect
FROM totals;
Mix vs rate
A blended conversion rate can fall without any segment getting worse, because more traffic now comes from a segment that always converted less: a mix effect. A rate effect is a segment actually converting worse. With w = a segment's share of sessions, c = its conversion rate and C0 = the overall rate in the previous period:
- Mix effect of segment s = (w1 − w0) × (c0 − C0)
- Rate effect of segment s = w1 × (c1 − c0)
Summed over segments, mix plus rate equals C1 − C0 exactly. Subtracting C0 in the mix term makes each segment's sign readable: a segment drags the average down when it gains share and converts below average, or loses share and converts above it.
In the example, desktop's share of sessions went from 50.0% to 45.5% and mobile's from 50.0% to 54.5%; C0 is 2.5%.
Term | Arithmetic | Points |
|---|---|---|
Desktop mix | (45.5% − 50.0%) × (3.0% − 2.5%) | −0.023 |
Mobile mix | (54.5% − 50.0%) × (2.0% − 2.5%) | −0.023 |
Desktop rate | 45.5% × (3.0% − 3.0%) | 0.000 |
Mobile rate | 54.5% × (1.5% − 2.0%) | −0.273 |
Total | 2.18% − 2.50% | −0.318 |
Mix explains 0.045 of the 0.318-point drop (one seventh). Rate explains the other six sevenths, and all of it is on mobile. To convert points into dollars, multiply by last-period sessions × previous AOV: 220,000 × $76 = $167,200 per percentage point. That gives −$7,600 for mix and −$45,600 for the mobile rate, which together equal the −$53,200 conversion effect above.
-- Conversion change split into mix and rate, for every segment of every dimension.
-- Rows add up within a dimension, not across dimensions.
WITH labeled AS (
SELECT
*,
CASE
WHEN sales_date BETWEEN DATE '2026-08-31' AND DATE '2026-09-27' THEN 'prev'
WHEN sales_date BETWEEN DATE '2026-09-28' AND DATE '2026-10-25' THEN 'curr'
END AS period
FROM daily_sales
),
stacked AS (
SELECT 'device' AS dimension, device AS segment, period, sessions, orders FROM labeled
UNION ALL
SELECT 'channel' AS dimension, channel AS segment, period, sessions, orders FROM labeled
),
seg AS (
SELECT
dimension,
segment,
SUM(CASE WHEN period = 'prev' THEN sessions ELSE 0 END) AS s0,
SUM(CASE WHEN period = 'curr' THEN sessions ELSE 0 END) AS s1,
SUM(CASE WHEN period = 'prev' THEN orders ELSE 0 END) AS o0,
SUM(CASE WHEN period = 'curr' THEN orders ELSE 0 END) AS o1
FROM stacked
WHERE period IS NOT NULL
GROUP BY dimension, segment
),
rates AS (
SELECT
dimension,
segment,
1.0 * s0 / SUM(s0) OVER (PARTITION BY dimension) AS w0,
1.0 * s1 / SUM(s1) OVER (PARTITION BY dimension) AS w1,
1.0 * o0 / NULLIF(s0, 0) AS cr0,
1.0 * o1 / NULLIF(s1, 0) AS cr1,
1.0 * SUM(o0) OVER (PARTITION BY dimension)
/ SUM(s0) OVER (PARTITION BY dimension) AS cr0_all
FROM seg
)
SELECT
dimension,
segment,
100 * (w1 - w0) * (cr0 - cr0_all) AS mix_pts,
100 * w1 * (cr1 - cr0) AS rate_pts
FROM rates
ORDER BY ABS((w1 - w0) * (cr0 - cr0_all)) + ABS(w1 * (cr1 - cr0)) DESC;
Contributions add up within a dimension (the device rows sum to the total change) but overlap across dimensions, so never add a device row to a channel row; that counts the drop twice. A segment that exists in only one period has no baseline rate; report it on its own line rather than letting it turn into a null.
We ran every query in this post against the synthetic dataset in DuckDB. They use plain SQL (CASE, window functions, NULLIF), so they should port to Postgres, BigQuery and most warehouses; MySQL needs GROUP_CONCAT instead of STRING_AGG.
Step 3: Slice and dice the data
Once you know which component moved, find where. Two rules keep this honest:
- Rank by contribution, not by percentage change. A segment that fell 40% but carries 1% of sessions cannot explain a 6.5% drop; fold small segments into "Other".
- Prefer the dimension that concentrates the drop. When the cause sits in one dimension, every other dimension shows it smeared across all of its segments.
In the example: by device, the rate effect is −0.273 points on mobile and zero on desktop. By marketing channel (the synthetic data has a channel column too), the same drop is spread across paid social (−0.130), organic (−0.125) and email (−0.057), because every channel sends mobile traffic. Device is the cut that concentrates the problem, so split mobile conversion into its funnel steps.
Mobile funnel step | Previous 4 weeks | Last 4 weeks | Change |
|---|---|---|---|
Sessions | 100,000 | 120,000 | +20,000 |
Add to cart (of sessions) | 8.0% (8,000) | 8.0% (9,600) | 0 |
Start checkout (of carts) | 50.0% (4,000) | 50.0% (4,800) | 0 |
Complete checkout (of checkouts) | 50.0% (2,000) | 37.5% (1,800) | −12.5 points |
Conversion (8% × 50% × completion) | 2.0% | 1.5% | −0.5 points |
Cart and checkout-start rates did not move. Checkout completion fell from 50% to 37.5%, so the whole mobile drop sits at the last step. When a change is spread over several steps, split it with the same log formula as in step 2: a step's share of the conversion change = L × ln(step rate after / step rate before), where L = (C1 − C0) / (ln C1 − ln C0).
-- Which funnel step moved? Step rates for the segment you isolated (mobile).
WITH labeled AS (
SELECT
*,
CASE
WHEN sales_date BETWEEN DATE '2026-08-31' AND DATE '2026-09-27' THEN 'prev'
WHEN sales_date BETWEEN DATE '2026-09-28' AND DATE '2026-10-25' THEN 'curr'
END AS period
FROM daily_sales
WHERE device = 'mobile'
)
SELECT
period,
1.0 * SUM(carts) / SUM(sessions) AS cart_rate,
1.0 * SUM(checkouts) / SUM(carts) AS checkout_rate,
1.0 * SUM(orders) / SUM(checkouts) AS completion_rate,
1.0 * SUM(orders) / SUM(sessions) AS conversion_rate
FROM labeled
WHERE period IS NOT NULL
GROUP BY period;
Step 4: Get the broader context
Find the day the rate moved: plot the daily rate for the segment and step you isolated, and look for a step change (something switched on or off) versus a slow drift (behavior, competition, seasonality). Then check that day against a log of releases, experiments, price and promotion changes, campaign launches, tracking changes, payment-provider incidents, outages, public holidays and competitor moves. Keep that log as a table in the warehouse and the check is one join.
-- When did it start, and what shipped that day?
SELECT
d.sales_date,
1.0 * SUM(d.orders) / NULLIF(SUM(d.checkouts), 0) AS checkout_completion,
MAX(e.events) AS what_shipped
FROM daily_sales AS d
LEFT JOIN (
SELECT event_date, STRING_AGG(description, '; ') AS events
FROM release_log
GROUP BY event_date
) AS e
ON e.event_date = d.sales_date
WHERE d.device = 'mobile'
AND d.sales_date BETWEEN DATE '2026-09-28' AND DATE '2026-10-25'
GROUP BY d.sales_date
ORDER BY d.sales_date;
In the example: mobile checkout completion held at 50% for the first eight days, then fell to 32.5% on Tuesday 6 October, the day an app release with a new payment sheet shipped, and stayed there. Eight days at 50% and twenty at 32.5% average out to the 37.5% in the funnel table. The same log lines up with the other two drivers: a paid social campaign started on 28 September (the extra mobile sessions), and the free-shipping threshold was lowered the same week (smaller baskets).
Timing is a strong lead, not proof. Two checks turn it into evidence: compare checkout completion on the new app version against the old one over the same days, and walk through the payment flow on a phone yourself. If the old version still completes at 50%, the release is the cause; if both fell, look at the payment provider.
Step 5: Quantify each driver's contribution
This is key driver analysis: put the pieces into one bridge from the old number to the new one. Every driver gets a dollar figure, and the figures must add up to the total change; if they don't, something is missing.

Driver | Effect | Evidence |
|---|---|---|
Mobile checkout completion fell from 50% to 37.5% | −$45,600 | Exact split; the link to the 6 October release is a hypothesis until the version check |
Average order value fell from $76 to $74 | −$9,600 | Exact split; timing matches the free-shipping change |
Traffic shifted toward mobile | −$7,600 | Exact split |
20,000 more sessions (paid social, all mobile) | +$38,000 | Exact split |
Net change | −$24,800 | Adds up to the total |
The headline hid that the mobile checkout problem costs almost twice the net drop: the campaign's extra traffic was worth $30,400 net of its lower conversion (+$38,000 volume − $7,600 mix, which is also 20,000 sessions × 2.0% × $76), and it masked most of the loss. The evidence column matters too: the decomposition is exact, but the attribution to a release or a shipping change is a hypothesis until a check confirms it. Mixing the two up is how wrong root causes end up in board decks.
Step 6: Write the narrative and take action
The write-up is the product of the analysis: what happened, the drivers in order of size, how sure you are, and who does what next. For the example:
"Revenue for the four weeks to 25 October was $355,200, down $24,800 (6.5%). The main driver is mobile checkout: completion fell from 50% to 37.5% from 6 October, the day the app release with the new payment sheet shipped, which cost about $45,600. The paid social campaign added 20,000 mobile sessions worth about $30,400 net, which hid most of that loss. Smaller orders after the free-shipping change cost $9,600. The split is exact; the link to the release is a hypothesis until the mobile team compares the old and new app versions this week. Next steps: the mobile team runs that check and prepares a rollback, and we watch daily mobile checkout completion until it is back at 50%."
Then close the loop: add the cause to your team's list of known failure modes, and put a monitor on the rate that broke so the next drop reaches someone within a day instead of at the monthly review. In a weekly business review, every "why did X move" item should look like this.
Five mistakes that produce the wrong root cause
- Comparing unequal periods instead of equal, weekday-aligned windows (step 1).
- Reading a mix shift as a rate problem before running mix vs rate (step 2).
- Adding contributions across dimensions (step 2).
- Chasing big percentages in small segments instead of ranking by contribution (step 3).
- Treating timing as proof without a split that isolates the change, such as app versions, experiment exposure or a rollback (step 4).
What are the best tools for root cause analysis when a product or business metric drops?
Most software sold as "root cause analysis tools" is built for quality engineering. For a business or product metric there are five realistic options; facts about other vendors come from their documentation, checked in October 2026.
Tool | Choose it when | Main limit |
|---|---|---|
SQL and a spreadsheet (this post) | You need full control, or the question is one-off and simple | Slow at scale: at KRY, testing one hypothesis by hand took 2 to 4 hours |
Power BI key influencers and decomposition tree | Your metrics already live in a Power BI semantic model | AI splits are unavailable in some setups (for example Report Server and Publish to Web) and for complex measures |
Tableau Explain Data | You want quick leads on one odd data point in a view | Tableau says it cannot tell you what causes the patterns it finds |
Amplitude Root Cause Analysis | The metric is a product event that lives in Amplitude | Event Segmentation charts only, no formulas |
GetDot (AI data analyst) | The metric lives in your warehouse or semantic layer and people ask "why" in Slack or Teams | Needs a connection to your data and sound metric definitions |
- Power BI. The key influencers visual runs a decision tree (ML.NET) over the factors you choose and keeps only splits that pass a significance test at a p-value of 0.05. The decomposition tree's AI splits pick the next dimension to drill into, by highest or lowest value. Sources: Microsoft on key influencers and the decomposition tree.
- Tableau Explain Data. It models an expected range for one selected mark and lists explanations such as extreme values, contributing dimensions and contributing measures. It works on aggregated marks (SUM, AVG, COUNT, COUNTD, AGG) and skips dimensions with more than 500 unique values by default. Sources: how Explain Data works and its explanation types.
- Amplitude Root Cause Analysis. It finds the event properties and user segments that explain an anomalous data point and adds context such as holidays and product releases. It is on the Growth and Enterprise plans. Source: Amplitude docs.
Each of the three covers part of the method inside its own tool's data and fits best when one chart is the question; the decomposition, the event log and the write-up are still yours. Our Power BI comparison weighs an AI analyst against Power BI's built-in features.
How AI helps identify the root cause of a conversion drop
Once the metric tree is known, the hard part is not the arithmetic but the combinatorics. A funnel with six dimensions of five values each and four steps has 120 single segment-and-step cuts, and about 1,500 more once you cross pairs of dimensions. A person tests the handful they thought of first; an AI analyst can test all of them, run the decomposition the same way every time, read the support tickets from the same weeks and write the result up.
What it should not do is decide causation on its own. Ask any vendor whether its analyst separates what the arithmetic proves from what it suspects, shows the SQL behind every number, and uses your metric definitions instead of guessing what "revenue" means. For the wider category of agents that plan and run multi-step analysis, see agentic analytics.
How GetDot's Root Cause Analysis runs this method
GetDot's AI data analyst, Dot, connects to your warehouse, semantic layer and BI tools. Its Root Cause Analysis (first launched as Deep Analysis in March 2025) follows the same order as this post, exact arithmetic first, then segments, change points and seasonality (our own description, from the public product page and changelog).
- Ask where you work. Ask a why question in the web app, Slack or Teams; Dot shows its investigation plan and lets you steer it while it runs; for the hardest questions, say "go deep".
- Evidence labels. Every finding carries a label for the strength of its evidence, and causes the data cannot confirm stay marked as hypotheses. Since the May 2026 release, each finding also carries statistical confidence.
- Beyond SQL. Dot runs Python for regressions and significance tests, counts themes in free text such as support tickets, and brings in outside context such as public holidays, with sources.
- Traceable numbers. Each answer can show its lineage from the warehouse tables through the exact SQL queries (August 2026), and every query Dot runs is stamped with who asked.
- From chat to meeting. Ask for a PDF report or a PowerPoint deck on your company template, or schedule the investigation to land in Slack, Teams or email only when a condition holds, such as "only deliver if revenue dropped more than 5%" (see automated reports).
An investigation usually takes a few minutes. Dot queries your warehouse in place and applies its permissions and row-level security, and its LLM providers run with zero data retention. This post's example was worked by hand, not by Dot; the published example of Dot doing this on real data is KRY.
KRY: 20+ hypotheses tested in about 10 minutes
KRY, a European digital healthcare platform, connected Dot to its Looker semantic layer (LookML) and metric glossary. Claire Bertrand, its Data and Analytics Lead, asked one open question: "Where are the growth opportunities for France?" Dot analyzed a full year of data, tested about 20 hypotheses across age, specialty, funnel step, market and booking type, and returned three recommendations, each sized in euros. The largest, an estimated €800K a year: one patient segment converted at a significantly lower rate at one booking step, and many of those patients needed a service the flow did not list. Testing a single hypothesis by hand had taken KRY's team 2 to 4 hours.
See how Dot connects to Looker and LookML, or try it on your own data: the Free plan includes 300 one-time credits with full Pro features (as of October 2026).
FAQ
Revenue is traffic × conversion × order value, and new traffic often converts below average or hides a real conversion or basket-size problem, as in this post's example (sessions up 10%, revenue down 6.5%).
A mix effect: more traffic came from a segment that always converted less, so the blended rate fell while every segment's own rate held. Step 2 splits the two exactly.
Confirm the data, split the drop into mix and rate by segment, split the worst segment into funnel steps, find the day the moving step changed, and confirm the suspect with a split that isolates it.
It does the mechanical part reliably when it uses your metric definitions, but it cannot prove causation from observational data alone, so its findings should be labeled as arithmetic or hypothesis.
Rick Radewagen
Rick is a co-founder of Dot, on a mission to make data accessible to everyone. When he's not building AI-powered analytics, you'll find him obsessing over well-arranged pixels and surprising himself by learning new languages.