From before Craftosphere. Between 2013 and 2019 our founder built and maintained custom systems for small companies. This story is from that work. It's anonymized: no names, no sector where it would identify anyone, and details changed where they don't matter to the lesson.

Stories Earlier work, 2017

Current affairs

Eight meters logged every ten seconds, and a weekly report that gives the final consumption per client without the Excel magic

A facility billed its users for the electricity they used during their stay. I replaced an afternoon of file handling and Excel transformations with a report that arrived by email every week, with one number per client. The numbers matched what they had computed by hand, so they trusted it quickly, and nobody has opened one of those files since.

The data
eight meters, a reading every ten seconds, one rotating log file per PC
Before
files pulled by hand into Excel, slow and risky
After
one number per client in a weekly email

Before

Eight electricity meters at eight sites, each wired to its own PC over a serial cable. Every ten seconds, each PC appended the current reading to its local, daily rotating log file. The facility's clients used the premises for a period of time and paid for the electricity they used during it, so somebody had to turn those files into a number per client.

They pulled the files from the PCs remotely, imported them into Excel, found the readings at the start and the end of the client's stay, and subtracted. The files were enormous, Excel crawled, and the import had to be repeated for every client and every period. When something went wrong, a client paid too much or too little. Both are bad, and both mean a phone call.

What was built

Nothing about the meters changed. The system collected the files on a schedule, removed the duplicate readings the logging produced, threw away the lines that were broken, and loaded the rest into a database. The raw files stayed on disk, untouched, in case anyone ever needed them.

The system already knew the clients and the periods they had booked, so the report could do the subtraction itself. Every week an email went out with the consumption per client for the period they had used the facility. One number per client, ready for the invoice.

After

The first reports were checked against the numbers they had computed by hand. They matched, which is why trust came fast. After that, the people took the number from the email and put it on the invoice. Nobody opened one of those files again, and nobody waited for Excel.

I never measured the hours saved, but a multi-step process a person had to run became a weekly email nobody has to think about.

The lesson

Handling large amounts of data is something computers are excellent at and people aren't. When we know up front what has to come out of the data, automating it pays off fast. The first version should produce the same numbers the people already trust. Match first, then improve.

Which report takes an afternoon?

Bring the files and the steps you take to get the number. You leave with a straight answer on whether it's worth fixing, which may be no.