# 34 sources, cleaned once, on one dashboard

> Thirty four sources fed marketing, sales and operations, and every one of them arrived dirty. We built the cleaning as a product of its own, then the dashboards on top, so three teams read the same numbers and nobody repairs a spreadsheet on Monday.

Project on Variable Frog. Page: https://variablefrog.com/work/multi-source-dashboards

- Client: A consumer goods group
- Industry: Consumer goods
- Service: Foundation
- Stack: BigQuery, Python, SQL, React
- What we built: A cleaning layer and three sets of dashboards
- Outcome: 74% fewer hours spent cleaning
- Headline number: -74% hours spent cleaning

## In short

- The problem: 34 sources that disagreed on brands, markets and currencies, and two analyst days a week spent repairing them by hand.
- What we built: A cleaning layer of 410 tested rules with AI assisted mapping, and dashboards for marketing, sales and operations on one model.
- The result: 74% fewer hours spent cleaning than brands still on spreadsheets, and totals that tie to finance every morning.

Chart: Analyst hours spent cleaning data each week: brands on the new dashboards against brands still on spreadsheets.

Weekly cleaning hours over 12 weeks: brands on the new dashboards fall from 62 to 16 while brands on spreadsheets stay near 62.

### At a glance

- Challenge: **34** Sources across ad platforms, retail media, web shops, CRM, finance exports and agency spreadsheets, none agreeing on a brand, a market or a currency.
- Approach: **410** Cleaning rules, written once and versioned: names, currencies, duplicates, time zones and late data, each with a test.
- Result: **-74%** Analyst hours spent cleaning, against brands still on spreadsheets. The dashboards now open on yesterday's numbers.

A consumer goods group ran eleven brands in nine markets. Marketing, sales and operations each had dashboards, and each dashboard had a person behind it who spent the first two days of the week fixing its inputs by hand.

## The problem

The dashboards were never the hard part. The inputs were. One agency wrote the market into the campaign name, another into the account. Retail media arrived as emailed files with a new column order each month. Finance closed in one currency and the platforms billed in six (We counted 61 different spellings of the group's eleven brand names across the 34 sources.).

Every team had its own fix, kept in its own spreadsheet. So the same campaign cost three different amounts depending on who you asked, and a meeting about performance began with an argument about the data.

## What we built

We treated the cleanup as the product. Every source lands raw and untouched, then passes through one set of rules that anyone can read: how a name is split, which currency rate applies on which day, what counts as a duplicate, what happens when a file is late. A language model proposes a mapping for every name it has not seen before, a person approves or corrects it, and the approval becomes a rule. Nothing is ever fixed twice.

### From 34 sources to three teams

Connectors, files and custom API pulls land raw data, a cleaning layer applies versioned rules with AI assisted mapping and tests, and one model feeds dashboards for marketing, sales and operations.

- Sources: Connectors (Ad platforms, analytics, retail media and CRM, pulled on a schedule through their APIs.); Files and inboxes (Agency sheets and emailed exports, read as they arrive whatever the column order.); Custom pulls (The systems with no ready connector, each with a small tested integration of its own.)
- Cleaning: Rules (410 versioned rules for names, currencies, duplicates, time zones and late data. Every rule has a test.); AI mapping (A model proposes where an unknown name belongs. A person approves it once and it becomes a rule.); Checks (Row counts, totals against finance and freshness, every morning, with the failures sent to an owner.)
- Dashboards: Marketing (Spend, reach and return by brand, market and channel, down to the campaign.); Sales (Sell in, sell out and promotions beside the media that ran with them.); Operations (Stock, service level and forecast against what marketing is about to do.)

Six brands moved to the new dashboards first, chosen at random, and five stayed on their spreadsheets for twelve weeks. We logged the hours each analyst spent cleaning in both groups.

## The result

Cleaning fell from 62 analyst hours a week to 16 on the brands that moved, while the others stayed where they were. The hours that remain are the useful kind: approving a mapping the model proposed, or deciding what a new source should mean.

The argument about the data stopped. Marketing, sales and operations read from the same model, the totals tie to finance every morning, and a number on any dashboard opens to the rows and the rules behind it.

## What they own now

### Theirs to keep

Everything runs in their own cloud account and their own repository. The rules are plain text, so the next analyst can read them on day one.

- **The cleaning rules**: 410 rules with tests, versioned and documented.
- **The pipelines**: 34 sources, scheduled and monitored.
- **The data model**: One set of definitions for three teams.
- **The dashboards**: Marketing, sales and operations, built to be extended.
- **The runbook**: How to add a source, a brand or a market.

### How it was measured

Analysts logged the hours they spent repairing inputs each week. Six brands moved to the new dashboards first, chosen at random, and five stayed on spreadsheets for twelve weeks.

- Brands: 6 moved first, 5 stayed
- Period: 12 weeks
- Measure: Analyst hours spent cleaning, per week
- Check: Totals tied to finance every morning

