IvánDíazLab

Three years of sales. A story you can read.

Three years of Hilos y Encanto sales connected to see what drives the business.

Concept illustration: BI over historical sales.
BI over historical salesConcept illustration

SQLite · Star schema · Anomaly detection

What changes.

Context

Hilos y Encanto, my haberdashery, had piled up sales exports from 2023 to 2026 in loose files, in formats that changed along the way.

What I learned

That the best thing an analytics pipeline can do is delimit its own scope.

How it was built.Decisions, evidence and details

Context

Hilos y Encanto, my haberdashery, had piled up sales exports from 2023 to 2026 in loose files, in formats that changed along the way. The brief was to turn that scattered history into a queryable model that could answer business questions.

What was reconstructed

  • 56,739 transactions and 107,314 sales lines reconstructed into a star schema on SQLite.
  • 2,378 canonical product keys, unifying the variants under which the same item was named across three years.
  • 3,688 anomalies detected and flagged for review instead of quietly corrected.

The uncomfortable finding

The pipeline itself reports that only 1.97% of sales value has an identified customer. In other words: any analysis of repeat purchase, retention or customer lifetime value would, with this data, be an invention. The system says so before anyone asks.

What I learned

That the best thing an analytics pipeline can do is delimit its own scope. A dashboard showing retention with two per cent of customers identified is not a dashboard: it is a hallucination with axes. Saying so costs one uncomfortable conversation and saves a series of wrong decisions.

Your operation can take the next step.

Let’s talkMore projects