← Back to portfolio
Case Study · 06 / 17
Data at Scale · KPI · 2025

Which store
deserves the money?

Four UK stores, one marketing budget, and a question that store size alone can't answer. This study builds customer-focused KPIs with SQL and Databricks, visualises them in Tableau, and lands on a defensible recommendation: London — Leadenhall Street.

Role
Individual analysis + group poster
Module
BUSI4369 · Data at Scale
Stack
SQL · SQLite · Databricks · Tableau
Status
Completed study
Fig. 06 · four stores, four KPIs
06
Retention, not footfall, is where marketing money compounds.
§ 01 — The problem

Big and busy isn't the same as worth investing in.

FoodCorp runs four stores across London, Birmingham, and Nottingham, and the obvious way to pick a marketing target — whichever is biggest or busiest — rewards traffic, not loyalty. A store can pull crowds and still leak every new customer straight back out.

The better question is which store turns marketing spend into repeat, high-value customers. Answering that meant measuring behaviour over time, not a single snapshot.

A customer you keep is worth more than three you acquire and lose.

§ 02 — The KPIs

Four monthly measures of health.

§ 03 — Architecture

Transactions to dashboards.

Raw transactions were loaded into a database, shaped into KPI views with SQL, computed monthly per store in Databricks, and visualised in Tableau for the store-by-store comparison.

01 — Load
Transactions
FoodCorp transaction data loaded into a SQLite database via Python.
02 — Define
SQL views
Each KPI expressed as a reusable SQL view with a documented formula.
03 — Compute
Databricks
Monthly, store-level KPI series calculated across the full period.
04 — Visualise
Tableau
Dashboards comparing acquisition, retention, revenue, and growth by store.

Defining KPIs as SQL views — for example, repeat rate as customers with more than one transaction over total customers in the month — kept every figure reproducible and auditable, which is the whole point of a KPI document.

§ 04 — The finding

Leadenhall Street keeps its customers.

London — Leadenhall Street stood out on the measure that compounds: a repeat-purchase rate around 90%, paired with strong, stable revenue per customer and positive growth momentum. Birmingham — Frederick Street had acquisition peaks but weak retention — a leaky bucket — and the other London and Nottingham stores trailed on loyalty.

So the recommendation was Leadenhall Street, precisely because a campaign there is more likely to convert a new customer into a returning, high-value one rather than a one-time visit.

90.18%
Repeat-purchase rate at the top store
£1.29M
Total revenue analysed across the four stores
4
Stores compared on four monthly KPIs
§ 05 — Communicating it

A poster, a report, a recommendation.

The analysis fed both an individual report and a group A1 poster, so the same KPI story had to work as a detailed write-up and as a glanceable summary. Tableau dashboards carried the trends; the recommendation carried the conclusion. Keeping the KPI definitions in a shared document meant everyone was arguing about the same numbers.

§ 06 — What I'd do differently

Three things, next time.