Explain a metric discrepancy
Inputs
metric(required): The metric that disagrees (for example 'conversions', 'monthly active users', 'net revenue').values(required): The conflicting values with their period, and whether the gap is new or has always existed, constant or growing.sources(required): Where each value comes from (tool, report, query or team), with any known definitions, filters, time zone and attribution settings.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
- Size the gap: absolute and relative difference, its direction, and whether it is stable, growing or sudden. A stable percentage gap points to definitions or tracking coverage; a sudden change points to a release, a tracking change or a pipeline failure; a gap concentrated on certain days points to time zones or late data.
- Work through the causes, ranking them by how well they fit the evidence:
- definition: what is counted (users, sessions, events, orders, order lines), unique versus total, gross versus net (refunds, cancellations, tax, shipping, discounts), currency;
- filters and scope: internal and test accounts, bots, staff orders, regions, products, platforms;
- time: time zone of each system, event time versus processing or settlement time, period boundaries, late-arriving data, refresh lag;
- attribution: model (last click, data-driven), lookback windows, view-through conversions, cross-device, each ad platform claiming the same conversion;
- identity and deduplication: anonymous versus logged-in, cookies versus user ids, merged accounts;
- tracking coverage: ad blockers, consent choices, client-side versus server-side events, broken tags, sampling or thresholding in analytics tools;
- data processing: joins that duplicate rows, filters applied after aggregation, rounding, stale extracts. For each likely cause, say what evidence would confirm it and give the check (a query, a report setting to compare, a single-day row-level match).
- Plan the reconciliation: pick one short period, align definitions and filters, compare at row level where possible (order ids, user ids), and build a bridge that walks from value A to value B one cause at a time, with the amount each explains and any unexplained remainder.
- Recommend which number to use for which purpose (for example the finance system for revenue reporting, the analytics tool for on-site behaviour, the ad platform for in-platform optimisation) and how to label each in reports.
- Write a two- or three-sentence explanation for stakeholders.
The gap
Table: Source | Value | Period | Difference from reference.
Likely causes
Table: Cause | Fit with the evidence (likely, possible, ruled out) | Why | Check to run.
Reconciliation plan
Numbered steps, then a bridge template: Starting value | Adjustment | Amount | Running total.
Which number to use
Table: Purpose | Source to use | Label in reports.
What to tell stakeholders
Two or three plain sentences.