The project
A margin waterfall for the US fuel network
Every margin conversation used to start with “let's go and find out why.” I owned the data behind the report end to end: bringing pricing, supply cost, invoice and volume data together, making every component add up, and building the Tableau waterfalls.
The starting point: a number with no story
When margin dropped, the business couldn't quickly tell whether the market had moved, the brand premium had changed, supply terms had worsened, or costs had shifted. Each has a different owner and a different fix.
- But why?
- Did the market move?
- Did the brand premium change?
- Did supply terms get worse?
- Did costs shift?
Without the breakdown, a one-cent drop was a $5 million mystery.
Why it was hard: every driver lived somewhere else
This wasn't a charting problem. Every piece of the margin came from a different system, at a different level of detail.
| Source | Grain | Used for |
|---|---|---|
| Market reference prices | terminal × day × grade | Baseline cost |
| Retail pump prices | site × day × grade | Revenue per gallon |
| Supply invoices | delivery | Actual cost, invoiced volume |
| Contract terms | contract / site | Terms impact |
| Delivered volumes | site × day × grade | Weighting, volume variance |
None of these lined up naturally, and a waterfall only works if every bar adds up exactly to the total.
The method: one grain, volume-weighted
I aligned every input to site × day × grade, and stored each component in dollars rather than cents per gallon. Conversion happens only at the very end, so the parts always sum to the whole.
A simple average gives a small site the same weight as a large one. Volume-weighting keeps every bar honest, and each refresh is checked against the finance margin.
Reading the waterfall
Standard margin starts from what anyone could earn at the market's lowest rack price, then adds and subtracts each driver.
View data
| Component | Value |
|---|---|
| Market (rack low) | +7.0 |
| Brand value | +10.0 |
| bp premium | −8.5 |
| Terms | −1.2 |
| Volume variance | +1.3 |
| Others | −0.1 |
| Standard margin | 8.5 |
At 500 million gallons, 8.5 cents per gallon is $42.5 million of standard margin, and every cent of it is attributed to a driver.
What moved this month?
When margin fell by a cent, the waterfall showed which bar moved.
View data
| Item | Change |
|---|---|
| Market (rack low) | +0.2 |
| Brand value | 0.0 |
| bp premium | −1.1 |
| Terms | −0.1 |
| Volume variance | 0.0 |
| Others | 0.0 |
| Standard margin | −1.0 |
Brand value held, so pricing wasn't the problem. The bp premium widened, so the conversation goes to supply, with the size of the gap already on the table.
Three layers of margin
The same approach extends beyond the fuel itself, to what bp's supply chain adds and to environmental and regulatory effects.
View data
| Component | Value |
|---|---|
| Standard | +8.5 |
| Logistics | +1.4 |
| Supply & trading | +0.9 |
| Integrated | 10.8 |
| Lag effect | −0.6 |
| RINs | +1.1 |
| Programme costs | −0.3 |
| Total | 11.0 |
One view, three layers, and the same breakdown from the whole network down to a single site and grade.
What I built
Results