DEV Community

Serguey Shinder
Serguey Shinder

Posted on

Our Sales by Representative Report Lost Every Account Whose Representative Had Left

Every month our board pack includes sales by region and by sales representative. The report was built in 2019 in our reporting tool. It takes each invoice, finds the customer account, finds the representative on that account, and then finds the representative's name and region in a table fed from our HR system.

In the third quarter of 2024 our northern region's sales were shown as eleven percent down on the year before. The regional director spent two board meetings explaining a decline and presenting a plan to recover it. Then finance pointed out that the ledger showed the region's sales almost exactly flat.

The table of representatives came from HR, and HR's feed contained current employees only. When a representative left, his accounts kept his code until someone reassigned them, and his code no longer matched anyone in the table. The report linked the tables in the way that keeps only rows found on both sides, so his customers' invoices simply fell out of it. Nothing on the page said so. The northern region had lost three representatives that year, and their four hundred and twelve accounts had waited an average of four months to be reassigned, because each was given out only when the replacement started. In that quarter alone, three point one million pounds of sales were missing from the report.

It went wrong in the other direction too. When accounts were finally reassigned, the report showed all their past sales under the new representative, so new starters appeared to arrive with a full history, and the regional figures for earlier months changed after they had been presented.

The table of representatives now keeps everyone who has ever held an account, with a leaving date. The report shows accounts with no current representative as a line of their own, and they are reported by the representative who held them at the time of each sale. The last line of every page is the total from the ledger and the difference from the report's own total, and that difference is zero. Sales operations now reassigns a leaver's accounts within ten working days, and a report of unassigned accounts goes to each regional director every Monday.

A report that groups figures by something has to show what belongs to no group. Put the ledger total under it, so nobody can mistake what the report could find for what the company sold.

– Serguey Shinder

Top comments (0)