Platform how-to · Sales operations
Salesforce and finance reporting: build reports where closed-won revenue and invoiced revenue finally agree
Sales says the quarter closed at $2.8 million. Finance says $2.6 million. Both are right, by their own rules. Here's how to report across Salesforce and finance so the gap is explained instead of argued about.

At Quillon Systems, a company selling inspection software to manufacturers, the first week of every quarter starts with the same meeting. The VP of Sales brings a Salesforce dashboard: closed won, $2.81 million. The controller brings a finance report: invoiced, $2.64 million. Forty minutes later the meeting ends with an action item to “reconcile the numbers”, which means an analyst named Jonah spends two days in spreadsheets.
Jonah always finds the same kinds of reasons. A deal closed on 30 June but was invoiced on 3 July. A three-year contract booked at full value in Salesforce but invoiced yearly. A discount agreed by email that never made it onto the opportunity. A deal marked won that the customer later cancelled.
None of these are errors. They’re two systems doing their jobs. The problem is that nobody can see the reasons without Jonah’s two days.
Why the numbers differ
Salesforce and finance answer different questions:
- Salesforce records what sales agreed. An opportunity has an Amount, a Close Date and a Stage. When it’s marked Closed Won, the amount counts for the close date’s period.
- Finance records what was billed and, separately, what was earned. Invoices have their own dates, and revenue may be recognised over months or years.
So the gap between the two isn’t one number to make go away. It’s a list of explainable differences: timing, term length, discounts, currency, cancellations and the occasional duplicate.
Build the bridge, not a new total
A report that spans Salesforce and finance should show both totals and the bridge between them. Here’s how Quillon built one.
1. Link opportunities to invoices
The cleanest link is an ID on both sides. Quillon’s order numbers were entered on the opportunity in a custom field and printed on every invoice. Where the field was empty, the link fell back to the account, the amount and an invoice date within 60 days of the close date. Pairs that matched only loosely went to a review list.
Before linking, check that one customer isn’t spread over duplicate Salesforce accounts. A duplicate splits the invoices from the opportunity and shows up as a fake gap.
2. Agree the definitions in writing
Write down what each total means. “Bookings” is the sum of Closed Won amounts by close date. “Invoiced” is the sum of invoice totals by invoice date, net of credit notes. “First-year value” is the part of a multi-year deal billed in its first twelve months. Put these in one place as shared definitions, so a dashboard and a question in chat use the same rule.
3. Classify every difference
For each linked pair, name the reason it differs: timing, multi-year, discount, currency or cancellation. Opportunities with no invoice and invoices with no opportunity get their own rows. Those are often the most interesting.
Asking the question
With the links and definitions in place, the quarter-end meeting changed. Instead of two totals, the controller asked one question.
“Why is closed won higher than invoiced this quarter?”
- linked each closed-won opportunity to its invoices by order number, then by account, amount and date
- applied finance's definition of invoiced, net of credit notes
- classified each difference by its reason
- listed opportunities with no invoice and invoices with no opportunity separately
| Reason | Amount ($k) |
|---|---|
| Multi-year deals invoiced yearly | 96 |
| Invoiced after quarter end | 41 |
| Discount not recorded on the opportunity | 22 |
| Cancelled after closing | 11 |
Of the $170k gap, $96k is multi-year deals invoiced yearly, $41k is deals invoiced after quarter end, $22k is discounts not on the opportunity and $11k is one cancelled deal.
Dig deeper: see how it works
Every line in the bridge opens into the opportunities behind it, with the owner, the close date and the invoice dates. The discount line goes to sales operations so the opportunities can be corrected; the cancellation goes to the account owner.
For analysts
SELECT CASE
WHEN i.opportunity_id IS NULL THEN 'No invoice yet'
WHEN o.term_months > 12 THEN 'Multi-year, invoiced yearly'
WHEN MIN(i.invoice_date) > o.quarter_end THEN 'Invoiced after quarter end'
WHEN SUM(i.net_amount) < o.amount THEN 'Discount not on opportunity'
ELSE 'Matched'
END AS reason,
SUM(o.amount) - COALESCE(SUM(i.net_amount), 0) AS gap
FROM opportunities o
LEFT JOIN opportunity_invoice_links i ON i.opportunity_id = o.opportunity_id
WHERE o.stage = 'Closed Won' AND o.close_date BETWEEN DATE '2025-04-01' AND DATE '2025-06-30'
GROUP BY o.opportunity_id, o.amount, o.term_months, o.quarter_end, i.opportunity_id;The chart at the top of this page shows six months of both totals. Invoiced is lower every month in this invented example, which is normal for a business selling multi-year contracts. The months with wider gaps are the ones worth opening.
Reports that span Salesforce and finance
Once the bridge exists, these reports are straightforward:
- Won, not invoiced. Opportunities closed more than 30 days ago with no invoice. Finance’s favourite.
- Discount leakage. Linked pairs where the invoice is lower than the opportunity, by owner and product.
- Collections by rep. Invoices overdue for customers each rep sold to, so the relationship owner can help.
- Bookings to cash. Days from close date to first payment, by segment.
Each one needs both systems, and each used to mean an export. Built on linked data and shared definitions, they refresh on their own.
Keep each system in charge of its own numbers
The temptation is to pick a winner and force the other system to match. That rarely lasts. Salesforce is the right place for what sales agreed, and finance is the right place for what was billed. A report that reads both and explains the difference respects both teams and ends the meeting early.
Where Storek fits
Storek reads Salesforce through its export or a connector, next to your billing and finance data. It works out how opportunities, accounts and invoices link, keeps finance’s and sales’ definitions in one place, and answers questions like “why is closed won higher than invoiced?” in plain English, with the reasoning shown. Learn more about shared definitions or how to ask questions across sources.