Kevin Y

Episode 2,

Yesterday's sales changed overnight. Nobody touched anything.

Wednesday, 8:55 at Larkspur: yesterday's sales were $412K. Now they're $431K, and Pip calls it an incredible night for a Tuesday.

In this episode

Data Team takes place at Larkspur, a fictional online home-goods retailer. The people are made up; the data problems are real.

  • Kevin, Head of Data

    Kevin

    Head of Data

    The calm one, talking to camera. Played by me; off screen I am a Data Solutions Architect.

  • Marisol, CFO

    Marisol

    CFO

    Wants one number, by Thursday. Never wrong about the business.

  • Greg, VP Sales

    Greg

    VP Sales

    Chases the deck and the shiny tool. Loves anything labelled AI.

  • Theo, Junior analytics engineer

    Theo

    Junior analytics engineer

    Eager, fast, breaks things on Fridays. Learns something every episode.

  • Ana, Data engineer

    Ana

    Data engineer

    Quiet, sees everything, gets one line per episode. It lands.

  • Pip, The AI assistant

    Pip

    The AI assistant

    Confident, fluent, sometimes wrong. Not the chat in the corner: that one only knows my CV.

What really happened

Orders are stored in UTC, and the dashboard's "yesterday" meant the UTC day. Customers are on Toronto time, so a 9 pm Tuesday order is 2 am Wednesday in UTC.

A fix from the summer subtracted four hours by hand. Clocks changed in November and Toronto went to five hours behind, so the late-evening hour still landed on Wednesday.

On top of that, the payment provider confirms some orders in a 3 am batch. At 9 am Wednesday, about 140 of Tuesday's 4,100 orders hadn't arrived yet. Tuesday looked finished. It wasn't.

The fix: convert with a real time-zone name (America/Toronto), define the business day once in one model, label a day preliminary until it closes, and recount the last three days every morning.

The lesson: Define the day once. Close it on purpose.

Go deeper

More about Kevin Y