← Back to the journal

DataFocus · Journal

Why two AI tools disagree on quarterly revenue: the three unwritten choices

Two AI tools report different quarterly revenue because 'revenue' hides three unwritten choices: the amount table, the exclusions and the date basis. A line-by-line reconciliation, a definition card, the benchmark evidence, and how every channel can read one approved definition.

Two AI tools report different revenue for the same quarter because "revenue" is not a column in your database. It is three decisions nobody wrote down: which table carries the amount, which rows are excluded, and which date assigns a row to the period. Each tool makes those decisions on its own, and a language model fills every gap with the most plausible column name in the schema. The model is not the root cause; it exposes a disagreement the finance dashboard and the operations spreadsheet have carried for years without being compared. The fix is one owned, approved definition that every channel reads, so the dashboard, the chat assistant and the coding agent compile the same question to the same SQL.

The meeting where two numbers appear

Consider a hypothetical mid-size distributor; every figure in this scenario is illustrative. The finance lead asks the company's chat assistant for "revenue last quarter" and gets 9.74 million. The operations lead asks a coding agent connected to the warehouse the same question and gets 10.00 million. Both answers arrive in confident prose. Both tools will show their SQL on request. Nobody in the room can say which is right without reading it.

The 260,000 gap, about 2.7% of the finance figure, is not a bug in either tool. It is the distance between two definitions that were never compared, because each lived in a spreadsheet owned by a different team.

Where do the three choices hide?

Almost every metric dispute reduces to the same three variables. The last column states what a definition must say so that no tool is left to guess.

VariableVersion A (finance)Version B (operations)What a complete definition must state
TableInvoiced amounts from the ERP billing tableOrder amounts from the order-management tableThe source table and its grain (one row = one invoice line, or one order line)
FilterExcludes credit notes and internal transfersIncludes everything with status "completed"Every inclusion and exclusion, by column and value
TimeRecognized by invoice dateRecognized by ship dateThe date column that assigns a row to a period, and the period boundaries

Neither version is wrong. Finance legitimately wants invoiced revenue net of credits; operations wants what left the warehouse. The failure is that both are called "revenue" and neither is written anywhere a machine can read.

The two queries behind the numbers are short and reasonable (illustrative, not run):

-- Version A: finance view (illustrative, not run)
SELECT SUM(net_amount) FROM invoices
WHERE invoice_date >= '2026-07-01' AND invoice_date < '2026-10-01'
  AND doc_type <> 'CREDIT_NOTE';

-- Version B: operations view (illustrative, not run)
SELECT SUM(order_amount) FROM orders
WHERE ship_date >= '2026-07-01' AND ship_date < '2026-10-01'
  AND status = 'completed';

Both are valid SQL. They answer different questions.

Reconciling the gap, line by line

The useful move in that meeting is not to pick a winner but to walk from one number to the other. Three adjustments explain the whole difference:

Step (illustrative)Amount
Booked orders shipped in Q3 (Version B)10,000,000
less: shipped in Q3 but not yet invoiced at quarter end−420,000
plus: invoiced in Q3 for goods shipped in Q2+310,000
less: credit notes issued in Q3−150,000
Invoiced net revenue (Version A)9,740,000

The first two adjustments are the time basis (ship date versus invoice date); the third is a filter (credit notes in or out). None is a data error. That gives a practical test for whether a metric is actually defined:

Decision rule. A metric definition is complete when a person who has never seen the number can rebuild it from the definition alone. If two teams' numbers cannot be reconciled line by line from their written definitions, at least one of them has a label, not a definition.

Passing that test for the finance version looks like this (illustrative):

FieldInvoiced net revenue
Source and graininvoices, one row per invoice line
Includedoc_type = 'INVOICE'
Excludedoc_type = 'CREDIT_NOTE'; counterparties flagged as internal entities
Period basisinvoice_date, calendar quarters, half-open intervals
UnitNet of tax, reporting currency at the invoice-date rate
OwnerFinance controller; changes take effect only after approval
Not to be confused with"Booked orders shipped", owned by operations, based on ship_date

The last line does more work than it looks: it names the other metric, so nobody argues about which one "revenue" means.

Why does a language model widen the gap?

A person who sees two revenue figures asks which is the official one. A model asked to write SQL does not ask. It reads the schema, finds the columns whose names resemble the words in the prompt, and picks. An enterprise schema typically offers several candidates for "amount": net_amount, gross_amount, order_amount, amount_local, amount_reporting. The choice varies along three axes at once:

  • Between tools, because each shows the model a different slice of the schema and a different system prompt.
  • Between prompts, because "revenue" and "sales" pull toward different columns.
  • Between runs, because generation is not deterministic.

The Spider 2.0 authors note that the enterprise databases in their benchmark often contain over 1,000 columns, the scale at which guessing from column names stops being reliable. The published benchmarks measure how far a bare schema sits from business meaning:

Three studies, three setups, one direction: accuracy tracks the definitions, relationships and mappings the model is handed, far more than the model itself. None measures any particular product.

What does "define once, read everywhere" look like?

The BI world's answer is a semantic or metric layer. dbt's documentation says that moving metric definitions out of the BI layer and into the modeling layer lets different business units work from the same metric definitions, and that a changed definition is refreshed everywhere it is invoked (as documented in November 2026). That settles dashboard against dashboard. The revenue meeting adds a second kind of consumer, the coding agent, which needs the same definition in a form it can query, with a record of what it read.

DataFocus OT, in both the Flash and Heavy editions, applies the same principle through a business ontology. Its product brief defines an ontology as a model of your business: its objects and how they relate, the rules and definitions you work by, the actions that can be taken, and who may see and do what, with people and AI working on the same model. The brief's "define once, use everywhere" point answers the meeting directly: a business definition is set once and used by search analysis, dashboards, control panels, the ontology agent and external agents, which all get the same figures.

Three design properties carry the weight for the revenue example:

  1. Definitions sit next to the data they govern. The document center holds policies, rules and metric definitions, linked to the data they govern. "Revenue" becomes a governed entry with a stated source, filter rule and time rule, not a word each tool reconstructs from column names.
  2. Definitions have owners and an approval step. DataFocus's homepage describes the enterprise being able to Define (owners confirm objects and definitions), Approve (changes take effect only after approval) and Verify (every answer traces to a source and version). Every call records the sources, definitions and returned scope it used.
  3. Agents read the same definitions through a standard interface. AI agent access is a standard MCP server with OAuth authorization; clients such as Claude Code connect directly, run read-only queries within an ontology, and receive the SQL and a data fingerprint with every result. The coding agent in the meeting would be reading the finance definition, not reverse-engineering the schema.

What happened in the published sample?

DataFocus's product brief includes a built-in sample-data example, in Chinese: a demonstration scenario published by DataFocus, not a customer deployment. A business user in Data Search and Claude Code through MCP asked for the same figure and returned matching totals by requesting department: Operations Support 7,842,000, Procurement 6,966,000 and Digital 5,786,000 (currency yuan). The agent's answer cited the SQL and a receipt field, evidenceRowsSha256. See the product brief.

What this shows is narrow: with a shared definition, two channels returned the same totals on sample data, and the agent's answer could be traced to its query and a hash of the rows it read. It says nothing about accuracy rates or about your data.

What if the definition changes mid-year?

Definitions move: a new revenue-recognition policy, a reclassified product line, a consolidated subsidiary. A wiki page cannot explain why the AI answered last month with the old rule. DataFocus documents that business-effective time is distinct from approval time, that unapproved rules cannot become active system knowledge, and that historical answers distinguish what was known at the time from a recomputation with current approved knowledge. Approval binds a specific version and scope; if the version changes, the change must be reviewed again.

The homepage demo (simulated data) shows the mechanism with a support policy changing from a 24-hour to a 4-hour response, effective midnight on September 25. Until the owner approves the change, agents keep answering with the old rule (v1). After approval, new queries use v2, and answers given under v1 stay on record, unrewritten. Translate that to finance: when someone asks in February why the Q3 figure moved, the answer is a version number and an approval record, not a search through email.

How should finance and operations own the definition?

The tooling only helps once people agree on the words. A sequence that fits in a month:

  1. List the contested metrics. Start with the three that appear in board or monthly review decks: revenue, active customers, on-time delivery. Not fifty.
  2. Collect the existing variants. Each team writes down the table, the filters and the time basis it uses today. Expect two to four variants per metric, and at least one to surprise its own owner.
  3. Reconcile the variants line by line, as in the table above. If the gap cannot be fully explained, there is a data problem to fix before any definition is written.
  4. Name one owner per metric. Finance usually owns revenue; operations usually owns delivery. Disputes go to a named person, not a committee.
  5. Split names where the meaning differs. "Invoiced net revenue" and "booked orders shipped" can both be legitimate, published metrics. The failure is one name for two numbers.
  6. Write each definition as a card, then approve it. Source and grain, filters, period basis, unit, owner, and the metric it must not be confused with.
  7. Re-ask the same question through every channel. Dashboard, chat assistant and coding agent should return the same figure. If they do not, the definition still has a gap, and the disagreement shows you where.

When is this not the right fit?

A shared definition does not repair bad source data. If the ERP billing table is missing credit notes, every channel will agree on the wrong total, and agree confidently. It also does not settle a genuine business disagreement about what revenue ought to mean; that is a decision for finance and operations, and software only records the outcome and its version. For a handful of metrics and one BI tool, a metric layer or a well-kept definitions document may be enough, and an ontology is more structure than the problem needs.

Both DataFocus OT editions are distributed free for local deployment. OT Flash is described as a lighter version of DataFocus without ETL and AutoML capabilities; OT Heavy adds those. Get either edition from the download page or the GitHub repositories for OT Flash and OT Heavy, where each edition's release notes list system requirements and supported platforms.

Next step

Read the DataFocus OT product brief for the definition and evidence examples, and the download page for the edition comparison before choosing an edition.