# One set of KPIs, rebuilt from the ERP

A food and drink distributor on SAP. One set of KPIs now covers sales, receivables, stock and logistics.

- 21 KPIs reconciled to the cent
- 30 source tables read every night

## The problem: Every department defined the same KPIs in its own way.

Sales, finance and logistics each took their numbers from a different tool and defined the same KPIs in their own way, so two reports could give two answers to the same question. 21 of the KPIs management needed were not visible to it at all. Putting AI on top of that would only have scaled the confusion.

## What we built

We rebuilt 21 KPIs every night from the raw ERP tables, read-only and checked to the cent. AI assistants such as Claude query them through a read-only MCP connector.

1. KPIs on sales, receivables, stock and logistics, rebuilt every night from 30 raw source tables and read-only on the ERP
2. Every KPI built twice, independently, and released only when both versions matched to the cent
3. A dashboard and an API behind the company's own sign-in, with roles taken from the company's own groups
4. A read-only connector so people can ask Claude for the KPIs; it acts as the user who asks and refuses anything but reads

## The path the data takes

1. **ERP.** We read 30 source tables and never write to them.
2. **Extraction.** It runs every night and takes about 12 minutes end to end.
3. **Transformation.** Each KPI is defined once, in SQL.
4. **API and dashboard.** People sign in with their company accounts.
5. **MCP connector.** AI assistants query the KPIs and can only read them.

## What the numbers say

**What changed.** Every team reads the same numbers, and anyone can ask a question about them.

The figures beside this note were produced by the system itself or by a survey of the people who used it.

- 21 KPIs reconciled to the cent
- 30 source tables read every night

## Next case

[Social posts turned into weekly trend signals](/case-studies/social-signal-pipeline): A company that sells music-trend insight to record labels.

## Ready to put AI to work in your systems?

Book a call and tell us which process you want to fix and where its data lives today. [Book a call](https://calendly.com/aaron-velais/velais-intro)
