How to investigate a sudden drop in revenue metrics: a data incident runbook
A seven-step runbook for telling a real revenue drop from a broken pipeline, with example SQL and agent prompts
To investigate a sudden drop in revenue metrics, first prove the drop is real by reconciling the dashboard number against the payment source of truth. Then work through a fixed order: scope the metric, check freshness and volume, look for code and schema changes, break the number down by segment, trace lineage upstream, and only then fix and backfill. The order matters because most of these checks are cheap and read-only, and each one rules out a whole class of causes. dbt's own source freshness docs are a good example of the cheapest check, which is also the one most teams run last.
Key Takeaways
- •A revenue drop is either a business event or a data defect. Reconciling against the payment source of truth settles which one in minutes.
- •Run the checks in a fixed order: scope, freshness and volume, code and schema changes, segment breakdown, lineage, then fix. Each step eliminates a class of causes.
- •Steps 1-6 are read-only queries and lineage lookups. Only Step 7 (fix, backfill, add a test) changes anything, and it should go through review.
- •Segment the drop before reading code. If it is concentrated in one currency, region, product or channel, you can usually name the cause from the segment alone.
- •An agent connected over MCP can run these steps from your editor, but the order and the reconciliation habit matter more than the tool.
How to investigate a sudden drop in revenue metrics: the seven-step order
The runbook below has seven steps. Step 1 scopes the metric and confirms the drop is real. Step 2 checks freshness and volume. Step 3 looks for recent code and schema changes. Step 4 decomposes the number by segment. Step 5 traces lineage upstream from the broken column. Step 6 confirms the root cause with a controlled comparison. Step 7 fixes, backfills and prevents recurrence. The table summarises the question each step answers.
| Step | Question it answers | Typical finding |
|---|---|---|
| 1. Scope and reconcile | Is the drop real, and which exact metric moved? | Dashboard and payment source disagree, or a metric definition changed |
| 2. Freshness and volume | Did all the data arrive? | A late source load or a partial table |
| 3. Code and schema changes | What changed since the last good run? | A model edit, renamed column or new filter |
| 4. Segment breakdown | Where is the drop concentrated? | One currency, region, product or channel |
| 5. Lineage | Which upstream table introduced it? | A join that now drops or duplicates rows |
| 6. Confirm | Does the suspected cause explain the full gap? | The gap closes when the cause is isolated |
| 7. Fix and prevent | How do we repair history and stop a repeat? | Backfill plus a test on the failing assumption |
Step 1: Scope the metric and reconcile against the source
Start by writing down exactly what moved: which metric, which grain, which time window, and which dashboard or table reported it. "Revenue" can mean gross bookings, net of refunds, recognised revenue or collected cash, and each is built from different tables. Then reconcile the warehouse number against the system that took the money, such as your payment processor's own report or the finance ledger. If the source of truth shows the same drop, you have a business event and this is no longer a data incident. If it does not, you have a data defect and the remaining steps apply.
A reconciliation query can be as simple as this: SELECT DATE(created_at) AS day, SUM(amount_cents)/100.0 AS revenue, COUNT(*) AS orders FROM analytics.fct_orders WHERE created_at >= CURRENT_DATE - 14 GROUP BY 1 ORDER BY 1; Run the equivalent against the raw payments table and compare the two series day by day. Where they diverge tells you the first bad day.
Step 2: Check freshness and volume
The most common cause of a sudden drop is that some of the data has not arrived yet. Check when each upstream source last loaded and how many rows landed per day. A freshness check compares the newest timestamp in a source to the current time, and a volume check compares today's row count to a trailing baseline. For example: SELECT DATE(loaded_at) AS load_day, COUNT(*) AS rows_loaded FROM raw.payments GROUP BY 1 ORDER BY 1 DESC LIMIT 14;
Look for three patterns: a source that stopped loading, a source that loaded only part of its usual volume, and a load that landed after the downstream model ran. The third looks like a drop in the dashboard that heals itself on the next run. If your freshness checks passed, note that they usually test only the newest row, not whether yesterday's partition is complete.
Step 3: Find code and schema changes since the last good run
Next, ask what changed. List commits to the transformation project, deploys and migrations between the last good value and the first bad one. Check source schemas too, because a renamed or retyped column upstream can silently turn a sum into nulls. Test failures matter here: the dbt data tests documentation describes the built-in not-null, unique, accepted-values and relationships tests, and a recent failing or newly disabled test is a strong lead.
Useful questions to put to your repo and warehouse metadata: What changed in the orders schema since the last deploy? Did anyone modify the revenue model, a staging model it reads, or a filter on order status? Did a new payment method, currency or product line start arriving with a value the model does not map? Write the candidate changes down with timestamps and compare them to the first bad day from Step 1.
Step 4: Break the drop down by segment
Before reading any code in depth, decompose the drop. Compare the bad period to a comparable good period, grouped by the dimensions a revenue number is built from. For example: SELECT currency, region, product_line, SUM(amount_cents)/100.0 AS revenue FROM analytics.fct_orders WHERE DATE(created_at) IN (CURRENT_DATE - 1, CURRENT_DATE - 8) GROUP BY 1, 2, 3 ORDER BY revenue DESC; Run it for both days and subtract.
The shape of the result usually narrows the cause. A drop concentrated in one currency points at an exchange-rate join. A drop in one region suggests a late regional load or a filter. A drop across everything in the same proportion suggests a missing partition or a changed definition. A drop in one acquisition channel can be a tracking or checkout problem rather than a pipeline problem, so reconcile that segment against the checkout system before changing any model.
Step 5: Trace lineage upstream from the broken column
Once you know which segment is wrong, walk the lineage from the dashboard column back toward the sources. At each hop, compare row counts and sums between the input and the output of the model. The first model where the output no longer matches what its inputs imply is your suspect. Pay attention to joins: an inner join against a dimension table that lost rows drops revenue, while a join against a table that gained duplicate keys inflates it.
A quick join check: SELECT COUNT(*) AS orders, COUNT(c.customer_id) AS matched FROM analytics.stg_orders o LEFT JOIN analytics.dim_customers c ON o.customer_id = c.customer_id; If matched is far below orders, rows are being dropped by the downstream inner join. This is the same question as "is the customer_id join safe after the migration?", and it is worth asking explicitly after any schema change.
Step 6: Confirm the cause explains the whole gap
A plausible cause is not a confirmed one. Isolate it and check that it accounts for the full difference you measured in Step 1. Rerun the suspect model in a scratch schema with the suspected change reverted, or recompute the number by hand for the affected segment, then compare. If the gap closes completely, you have the root cause. If it closes partly, there are two causes, and the leftover gap is a second investigation. Stopping early at the first plausible explanation is how a drop reappears the following week.
Step 7: Fix, backfill and prevent a repeat
Steps 1-6 only read data. Step 7 is where things change, so treat it as a reviewed change rather than an ad hoc edit. Fix the model or the load, backfill the affected date range, and verify the corrected number against the source of truth from Step 1. Then add a test for the assumption that failed: a row-count floor on the source, a not-null test on the join key, or a reconciliation test that compares the warehouse total to the payment total within a tolerance.
Write a short incident note with the first bad timestamp, the cause, the dollar impact and the test you added, and tell the stakeholders who saw the wrong number which period was affected and when it was corrected. Dashboards that other people screenshot into slides make this communication step as important as the fix itself.
Running this runbook from Claude Code or Cursor
Every query above can be run by hand in a SQL console. If your team works in Claude Code or Cursor, the same steps can run from the editor through MCP servers, which Claude Code supports natively and which the Model Context Protocol defines as an open standard. Our Incidents Agent is one of fifteen MCP-native agents we build for this. It traces a failure across lineage, logs and queries and proposes a fix, and it chains with our schema, quality and catalog agents for the cross-checks in Steps 3 and 5.
A sample prompt that follows the runbook: "Daily net revenue in analytics.fct_orders dropped on 2026-12-03. Reconcile against raw.payments, check source freshness and row counts for the last 14 days, list model and schema changes since 2026-12-01, break the drop down by currency, region and product line, and trace lineage to the first model where input and output sums diverge. Report findings only; do not change anything." The read-only instruction maps to Steps 1-6. In the open-source edition the agent is read-only by default, so it stops at a proposed fix. Writes, approval workflows and audit trails are part of Pro, and our open-source docs at /opensource-docs cover setup.
We covered how a shared context layer lets these agents cross-reference lineage, quality and governance in a separate post on agent-native data operations, and our Catalog Agent) page explains how the lineage used in Step 5 stays current. The agent does not replace the habit of reconciling against the source of truth. It saves you the typing and the tab switching, and you still decide what counts as the real number.
Frequently Asked Questions
How do I know whether a revenue drop is real or a data problem?
Reconcile the warehouse number against the system that took the money, such as your payment processor's report or the finance ledger. If that system shows the same drop, it is a business event. If it does not, you have a data defect and should continue with freshness, changes, segmentation and lineage.
What is the most common cause of a sudden drop in a revenue dashboard?
In our opinion, partial or late data is the first thing to rule out, because it is the cheapest check and produces drops that look severe. Join changes, filter changes and renamed upstream columns come next. We do not have a published dataset ranking causes, so treat this as a practical ordering rather than a statistic.
Why check segments before reading the transformation code?
A segment breakdown costs one query and often names the cause on its own. A drop in a single currency, region or channel points at a specific join, load or tracking path, so you read the relevant code instead of the whole project.
Can an AI agent investigate a revenue drop on its own?
An agent connected to your warehouse, lineage and logs can run Steps 1-6 as read-only queries and report evidence. We recommend a human reviews the proposed fix and backfill in Step 7 before anything is written, which is how approval workflows work in our Pro edition.
What tests prevent the same revenue drop from happening again?
Add a test for whichever assumption failed. Common choices are a minimum row count on the source, a not-null or relationships test on join keys, an accepted-values test on currency and status columns, and a reconciliation test that compares the warehouse total to the source-of-truth total within a tolerance.