Case study · A home-improvement retail chain

A data platform their own team runs

Reports were built by scripts and spreadsheets, and nobody was told when one failed. Now one monitored platform builds them, and the client's own team runs it.

  1. Stores and checkoutsDaily sales and stock
  2. App and online store3 new data sources
  3. Scheduled jobsRun in order, alert on failure
  4. Checked reportsEvery change recorded and checked
  5. Their own team40 of 40 handover items signed

A failed job now raises an alert

The daily sales and stock reports were built by jobs. A job is a step that moves data or works out the numbers. These jobs ran from spreadsheets, scripts and database procedures. Nothing watched them. When one failed, people found out when a report looked wrong.

There was also no one place to see which jobs had run, which had failed, or what had changed.

We moved the jobs onto one platform in the client’s own cloud account. A scheduler now runs every job in order. When a job fails, it alerts the team chat.

Every change is recorded, checked and released automatically. Releasing a change took about 10 minutes before. It now takes about 25 seconds.

Time to release a change

~10 minBefore

~25 sAfter

Measured · delivery team’s timing report; each face = 10 minutes

One definition of a sale

The reports had a second problem. Each one worked out sales its own way.

One real receipt shows the problem. It had 303 items. Count a sale each time an item is scanned, and that receipt is 303 sales. Count by receipt, and it is one sale.

One receipt, one sale

1

303Counted by item scan

1Counted by receipt

Measured · one real receipt; one mark = one item

The shared definition counts by receipt. We rebuilt the core reports on that one tested definition and checked each against the old one.

  • Rebuilt sales matched the old numbers row for row in most comparisons. The remaining differences were at most 0.003% of rows.
  • Rebuilt stock matched the old numbers exactly, on stock tables of up to about 450 million rows.
  • A replenishment report moved off a spreadsheet script, with a check against the old report. Our delivery review recorded 4 gaps found and fixed.

Member data from three outside systems

The platform also had to take in new data. A loyalty app was weeks from launch. Its member data sat in three outside systems. None of it had reached the data warehouse, the database behind the reports.

We loaded the three sources and joined them with store sales. About 50 requests to outside vendors were tracked in one list, so none was left waiting. Two member totals disagreed, and we explained the difference down to the last record.

Before we build a report, we work each formula through with simple numbers. One member measure was worded as member sales divided by non-member sales. Say 70 of every 100 sales come from members. That wording gives about 233%. A 70% share was meant. We raised it before any dashboard used it.

A bill traced to its cause

Cost had the same problem as the jobs. The data warehouse bill jumped over ten days, and there was no way to see what drove it. Over 95% of the jump came from dashboard queries. A query is a request a dashboard sends to the warehouse for data.

The dashboard tool filtered dates in a way that made the warehouse read the whole table, old data included. In the comparison, the same query read about 7.5 GB instead of about 65.5 GB. That is about 89% less data.

Less data per query

~65.5 GBBefore

~7.5 GBWith the fix

Measured · query comparison record; area = data read

A 30-day study of the query logs found more. One query read about 500 GB for an answer that a 1.8 GB summary table already held.

One answer, far less data

~500 GBQuery as it ran

1.8 GBSummary table

Measured · 30 days of query logs; square area = data read

The study came with a list of fixes. Our estimate: about half the spend on one group of tables is avoidable. A live dashboard now shows warehouse spend by user and by dashboard.

Handed over to their team

Their team took the platform over through training and a signed checklist.

We held 14 sessions with them: 7 training, 3 handover and 4 demos. By handover their team had made about twice as many changes as we had (our count).

The handover checklist had 40 items in 12 areas. Each item has a named owner on their team. All 40 are signed.

Signed over to their team

40 / 40Items signed by their owners

12Areas

Measured · signed handover checklist

Do you find out a report is wrong only when someone notices?

Book a call30-minute discovery call · no obligation

What happens next

  1. You pick a timeYou get a confirmation email. 30 minutes.
  2. You talk to an expertAbout your business challenges and where your data sits.
  3. We understand your goalsWhat you want to achieve, and what we would do first.