Skip to content

Where did the extra $320 come from?

Five invoices add to $500. A report built from the same invoices says $820. Follow one payment to see where the extra dollars entered.

10 minAnalysts, operators and builders who work with reports

Try the exercise

Find the first repeated amount

A repair shop bills once per invoice. Customers can pay in installments. A dashboard joins the invoices to their payments so the team can see cash collected. The sales total jumps. Trace I101 before you change the formula.

Two receipts can describe the same sale.
InvoiceBilledReceiptPaid
I101$120R01$70
I101$120R02$50
I102$80R03$80
See a worked example

I101 represents $120 of billed work and $120 collected. Its two joined rows contribute $240 if you add the billed column after the join.

Count what one row stands for

An invoice amount belongs to one invoice. A receipt belongs to one payment. I103 also has two receipts, so its $200 is counted twice. Those two extra copies, $120 and $200, explain the full $320. Counting distinct invoice IDs repairs the count. It leaves the inflated dollar sum untouched.

Catch the tempting shortcut

A teammate proposes summing distinct dollar amounts. Imagine two separate customers each owe $80. That shortcut counts only one bill. Sum receipts by invoice ID first, then attach the payment totals to the original invoice list.

Try it yourself

I101 has two receipts. How much should it add to billed revenue?
Which change preserves two different $80 invoices?
A $15 receipt names an invoice missing from the file. What should appear in the close?