Ernest E. Guzmán, home

Booking December projects · 2 slots left

///
Let's talk
← All work 05 / 05

Operations · Interconnected data system

MiagaRose

The whole business, modeled in interconnected tables. No new software, no monthly fee.

Client
MiagaRose
Sector
Preserved roses in a box
Market
Spain · Online + wholesale
Role
Operations systems & analytics
Timeline
2025
Scope
Data model · Inventory · Costing · Cash flow · Dashboards
MiagaRose

MiagaRose needed control, not another subscription. Stock lived in one file, costs in another, orders in an inbox and cash in the owner’s head. I designed a system of interconnected tables where every sale updates stock, margins and cash, in one place everyone already knew how to use.

Outcomes
14linked tables, one source of truth
2d→2hmonthly close
100%of SKUs with a real, up-to-date margin
0 €in new software subscriptions
The challenge

Decisions were made on feel: what to reorder, what to discount, whether wholesale was worth it. Nobody knew the true cost of a product once packaging, shipping and payment fees were added, and month-end took two days of copy-pasting.

The approach

Design the data model like a database (entities, keys, relationships) and only then build it in the tool the team already lives in.

01

The data model first

Before
Stock in one file, costs in another, orders in an inbox and cash in the owner’s head.
What I did
Fourteen tables, each with one job and a key that links it to the rest.
Result
One source of truth, in a tool the team already used.

Fourteen tables, each with one job and a key that links it to the rest. Products feed costing; costing feeds pricing; orders consume inventory and write to cash flow; the dashboard only reads. Pick an event and watch what it touches, or point at a table to trace its links.

14 linked tables · what one event touches
Masters
Movements
Calculations
Answers
02

Change one cost, watch everything move

Before
Nobody knew a product’s true cost once packaging, shipping and fees were added.
What I did
Linked bills of materials: one cost changes and unit cost, margin and stock value follow.
Result
100% of SKUs with a real, up-to-date margin.

This is the point of interconnected tables: a supplier raises the price of one material and every affected product’s unit cost, margin and reorder value update instantly. Try editing a cost below.

materialsbommarginsinventorydashboard
Materials: edit a cost
MaterialUnit cost
Preserved rose (each)
Hatbox
Satin ribbon (m)
Moss & eucalyptus
Card & seal
Products: calculated
SKUWhere each euro goesUnit costMarginStock value
Box Classica€64
Mini Rosa€19
Cuore 24€129
Inventory value
Weighted margin
  • Preserved rose
  • Hatbox
  • Satin ribbon
  • Moss & eucalyptus
  • Card & seal
  • Labour
  • Fees
  • Margin

Illustrative data · formulas mirror the production system

Roses that never wilt, in a store that lives up to them.

MiagaRose · The rose and its card
01The rose and its card
MiagaRose · A rose that lasts for years
02A rose that lasts for years
MiagaRose · Three roses, in white
03Three roses, in white
MiagaRose · Stabilised, not dried
04Stabilised, not dried
MiagaRose · The heart, three roses
05The heart, three roses

Photography: MiagaRose · miagarose.it

03

Dashboards that answer questions

Before
What to reorder, what to discount, whether wholesale paid: all decided on feel.
What I did
Dashboards that answer: reorder points, margin after every fee, P&L by channel, weeks of cash.
Result
Month-end close from two days to two hours.

Not charts for their own sake, but answers. What should I reorder this week? Which products make money after every fee? Is wholesale worth it? How many weeks of cash do we have at the current pace?

  • Reorder points from sales velocity and lead time
  • Best-sellers ranked by contribution margin, not revenue
  • Channel P&L: online vs. wholesale vs. markets
04

Built to be handed over

Protected ranges, data validation, consistent naming and a one-page manual. The owner runs it alone; I’m only called when the business changes shape.

Design decisions

The system behind the screens

A spreadsheet is an interface too. The owner opens it every day, so it was designed like a product: a visual grammar for cells, names you can read aloud, and tabs ordered the way money moves.

A

Color

  1. Input#EEF3EACells you are allowed to type in12.4:1 · AAA
  2. Formula#FFFFFFCalculated, protected14.0:1 · AAA
  3. Lookup#8E74A8Text pulled from another table3.9:1 · AA large
  4. Check#B8485EA rule is broken: fix it4.9:1 · AA
  5. Header#E8B4BCTab and header color of master data7.8:1 · AAA
  6. Text#4A1D28Values13.6:1 · AAA

Color means one thing only: what you can touch. Green cells are inputs; everything white is a formula and locked. Red appears only when a check fails.

B

Typography

Box Classica · Mini Rosa · Cuore 24

Inter500 · 0

Labels and namesNeutral and legible at 10 pt on a laptop screen.

€28.87 48% 11.4 wk

JetBrains Mono450 · 0

NumbersTabular figures so columns of money line up digit by digit.

C

Decisions, and why

  1. 01

    Tabs ordered like the flow of money

    WhyMasters → transactions → calculations → outputs: you read left to right.

    Instead ofOne giant sheet with everything.

  2. 02

    Named ranges people can read aloud

    Why=unit_cost * stock_on_hand survives a handover; =C4*F9 does not.

    Instead ofCell references only the author understands.

  3. 03

    Margins after every fee

    WhyRanking by revenue was rewarding the products that lost money.

    Instead ofGross margin on the list price.

D

Schema

Cell grammar
A · skuB · unit_costC · priceD · marginE · check
2Box Classica28.8764.00=1-(B2/(C2*0.936))✓
3Mini Rosa7.2219.0059%✓
4Cuore 2467.0359.00−21%✕ price < cost
  • Input
  • Formula · locked
  • Lookup
  • Check failed
Stack
  • Google Sheets
  • Apps Script
  • QUERY · XLOOKUP · ARRAYFORMULA
  • Data validation
  • Looker Studio
Deliverables
  1. Relational data model
  2. 14 linked tables
  3. Costing & pricing engine
  4. Inventory & reorder logic
  5. Cash-flow forecast
  6. Owner’s manual
What I would do next
  1. Sync orders automatically from the online store.
  2. Move to a lightweight database once volume justifies it.
Next project · 01 Hussars Menswear · Shopify · Meta Ads · Custom apps
Keep scrolling
© 2026 Ernest Guzmán · Legal notice · PrivacyLet's talk →