Revenue was being reported 61% higher than it was earned
Three system extracts from a Kenyan vehicle dealer group, 347,852 rows from January 2022 to August 2026. The brief was growth and margin. The first finding was that the revenue figure everyone was using counted the same money twice.
Parts invoice lines, service job invoices and workshop consumption rows exported from the dealer's systems. The dealer, its branches, brand and counterparties are not named, and none of its data is published.
Invoice-level matching across ledgers before any total; every unmatched invoice and the residual gap accounted for; bad rows flagged, not deleted; every figure produced in pandas and in Excel formulas and reconciled cell by cell.
Test the joins before adding the ledgers
The brief assumed three independent sources: a parts invoice ledger (185,699 lines), a service job ledger (30,787 rows) and a workshop consumption log (131,366 rows). Adding the two ledgers gave the revenue figure in use.
Before adding anything I matched invoice numbers across them. 28,666 of 30,779 job invoices, 93.1%, also appear as workshop sales on the parts ledger: the same parts, reaching the books by two routes. Each ledger is right on its own. Treating them as additive counted KSh 1.07bn twice.
Revenue was KSh 1.76bn, not KSh 2.83bn. Growth rates, branch shares and margin had all been measured against a base that did not exist.
What the reported revenue was made of
KSh billions, January 2022 to August 2026. The bar is the KSh 2.83bn in use when the brief arrived.
- Revenue, KSh 1.76bn
- Counted twice, KSh 1.07bn: the same parts again, through the job ledger
Show the numbers
| Part | KSh bn |
|---|---|
| Revenue | 1.76 |
| Counted twice | 1.07 |
| Reported | 2.83 |
Job invoices that also appear on the parts ledger
30,779 service job invoices, matched by invoice number.
- In both ledgers: 28,666, 93.1%
- Labour only, no parts: 2,113
Show the numbers
| Job invoices | Count |
|---|---|
| In both ledgers | 28,666 |
| Labour only | 2,113 |
| All | 30,779 |
- ✓
The 2,113 unmatched job invoices are labour only. None of them carries parts, so removing the overlap drops nothing.
- ✓
The KSh 27.3m residual between the ledgers is a price basis, not missing money. KSh 26.6m of it is 2022, when the job ledger carried parts at 1.25 times the parts ledger price; from 2023 the two agree to within rounding.
A few hundred bad rows decided the margin story
Margin is measured only on lines with a valid cost, from 2024 onward. The 2022 and 2023 lines are left unmeasured rather than estimated.
The later data had its own trap. 447 credit-sale lines in 2026 carried costs far above the normal level for the same items, about KSh 52m of excess cost. Left in, they put 2026 gross margin at 6.7% and the story becomes a collapse in profitability. Flagged and excluded, 2026 margin is 23.4%, in line with the 23.9% across all lines with valid cost.
A meeting held on the first number would have been about a crisis that was not happening.
2026 gross margin
January to August 2026.
Then answer the brief, on the corrected base
27%
a year compound revenue growth, 2022 to 2025, measured on the corrected base.
Where the corrected revenue comes from
Percent, on the corrected base.
- The part named on the left
- Everything else
Show the numbers
| Measure | Part | Share |
|---|---|---|
| Job value | accident repair | 32% |
| Jobs | accident repair | 3% |
| Revenue | 50 insurers as customers | 26% |
Every figure built twice
- ✓
5,189 of 5,189 headline cells match. Each figure was produced once in pandas and once as live Excel formulas, then compared cell by cell, so the client could open the workbook, change an assumption and watch the number move.
- ✓
Flags, never deletions. Every excluded row stays in the data with a flag column, so any exclusion can be reversed.
- ✓
Assumptions first. Every judgement call is one editable cell, stated before any result that depends on it.
What this analysis cannot tell you
- Margin before 2024 is not reported. An estimate was possible, but not one that could be checked.
- The 447 bad cost lines were flagged, not repaired. Their true cost is unknown, and imputing it would invent margin.
- The 1.25 price ratio in 2022 is inferred from the data, not from documentation. It is consistent across the year and explains the gap, but the pricing policy behind it was not seen.
- This is one dealer group in one market. The double-count pattern is common where a parts ledger and a job ledger sit side by side, but nothing here shows how common.
Client work. The data and the code stay with the client; this page shows only counts, percentages and the method.