GS
← All work

Walkthrough · Dashboard design

Build a dashboard with me

Grocery sales grew 10.5% across 2017. Where did it come from, and what should the category team do? Seven tiles, one decision at a time, on real household data. At each step, try picking the chart yourself.

Skip to the finished dashboard ↓
  1. STEP 1 / 7

    Start with four numbers

    The question
    How big is the business, and is it growing?
    Why this chart
    KPI cards answer "how are we doing?" in one glance. I picked the four that multiply into sales, so the rest of the dashboard can explain them.
    What it says
    Sales are up +10.5% from January to December. Households are up +2.9%, trips per household changed −2.0%, and spend per trip is up +9.6%.

    Which chart would you pick?

    The business at a glance

    Latest 4-week period (Dec 2017) vs the first (Jan 2017)

    Sales ex-fuel

    $351.8k

    ▲ +10.5% vs Jan

    Active households

    2,004

    ▲ +2.9% vs Jan

    Trips per household

    5.39

    ▼ −2.0% vs Jan

    Spend per trip

    $32.54

    ▲ +9.6% vs Jan

    Design note Four numbers only: the ones the bridge explains. Each shows change vs January so nobody has to do math.

    KPIs, period 1 vs period 13
    MetricJan 2017Dec 2017Change
    Sales ex-fuel$318.2k$351.8k+10.5%
    Active households1,9472,004+2.9%
    Trips per household5.505.39−2.0%
    Spend per trip$29.70$32.54+9.6%
  2. STEP 2 / 7

    Check the shape of the year

    The question
    Is that growth steady, or did it all happen at once?
    Why this chart
    A line over time is the only honest way to show trend and noise together. The 4-week average stops one odd week from steering the story.
    What it says
    A typical week sold about $80.8k. Sales rose from October, and the week of Dec 18 hit $107.1k: the holidays. With one year of data, December vs January mixes real growth with seasonality, so I say so.

    Which chart would you pick?

    Weekly sales, ex-fuel

    Each week of 2017 (thin line) and the 4-week average (bold)

    $70.0k$90.0k$110.0kJanMarMayJulSepNovPeak: $107.1k, wk of Dec 18

    Design note Thin weekly line keeps the noise honest; the 4-week average carries the story. Month labels, not week numbers.

    Weekly sales ex-fuel, 2017
    Week startingSales
    2017-01-02$88.4k
    2017-01-09$78.2k
    2017-01-16$77.6k
    2017-01-23$74.0k
    2017-01-30$91.0k
    2017-02-06$84.4k
    2017-02-13$76.1k
    2017-02-20$80.7k
    2017-02-27$85.1k
    2017-03-06$79.2k
    2017-03-13$79.6k
    2017-03-20$77.4k
    2017-03-27$81.2k
    2017-04-03$80.8k
    2017-04-10$83.3k
    2017-04-17$75.0k
    2017-04-24$75.8k
    2017-05-01$89.8k
    2017-05-08$84.0k
    2017-05-15$83.0k
    2017-05-22$80.8k
    2017-05-29$86.0k
    2017-06-05$84.8k
    2017-06-12$80.2k
    2017-06-19$71.2k
    2017-06-26$83.2k
    2017-07-03$91.0k
    2017-07-10$77.8k
    2017-07-17$77.2k
    2017-07-24$75.3k
    2017-07-31$89.6k
    2017-08-07$79.8k
    2017-08-14$77.7k
    2017-08-21$76.0k
    2017-08-28$81.4k
    2017-09-04$86.1k
    2017-09-11$75.4k
    2017-09-18$76.6k
    2017-09-25$77.6k
    2017-10-02$84.6k
    2017-10-09$80.7k
    2017-10-16$77.5k
    2017-10-23$79.9k
    2017-10-30$92.3k
    2017-11-06$80.8k
    2017-11-13$85.6k
    2017-11-20$86.5k
    2017-11-27$84.5k
    2017-12-04$87.0k
    2017-12-11$81.6k
    2017-12-18$107.1k
  3. STEP 3 / 7

    Break the growth apart

    The question
    Was it more shoppers, more trips, or bigger baskets?
    Why this chart
    Sales = households × trips per household × spend per trip. In log points those three add up exactly, so a bridge shows how each one moved the total.
    What it says
    Of 10 points of growth, bigger baskets added +9.1. More households added +2.9, and fewer trips each took away −2.0. Nearly all of the growth came from spend per trip.

    Which chart would you pick?

    What drove the growth

    Sales grew 10.5% Jan → Dec 2017; 10 log points split into three drivers

    0510+2.9More households−2.0Fewer tripseach+9.1Bigger baskets+10.0Total growth

    Design note A bridge, because the question is 'what adds up to +10?'. Log points are used so the parts sum exactly.

    Growth bridge, log points
    DriverLog points
    More households+2.9
    Fewer trips each−2.0
    Bigger baskets+9.1
    Total growth+10.0
  4. STEP 4 / 7

    Find where the basket grew

    The question
    Which departments drove the bigger baskets?
    Why this chart
    Each department's share of the total change, sorted biggest first and diverging from zero, so losers are as easy to spot as winners.
    What it says
    Grocery (+3.8 pts) and Drug/GM (+3.5 pts, itself up +27%) did most of the work, which fits holiday shopping. Fresh slipped: Produce −5.4%, packaged meat −5.7%.

    Which chart would you pick?

    Which departments grew

    Points of the total sales change, Jan → Dec (label: department's own % change)

    Grocery+3.8 (+7%)Drug GM+3.5 (+27%)Miscellaneous+1.3 (+95%)Other+0.9 (+33%)Deli+0.8 (+25%)Meat+0.7 (+9%)Pastry+0.3 (+21%)Nutrition−0.1 (−7%)Meat (packaged)−0.3 (−6%)Produce−0.4 (−5%)

    Design note Sorted by contribution, not alphabetically; diverging from zero so declines read as declines.

    Department contribution to sales change
    DepartmentPoints of changeOwn change
    Grocery+3.83+6.9%
    Drug GM+3.55+26.5%
    Miscellaneous+1.31+95.3%
    Other+0.91+32.8%
    Deli+0.81+25.0%
    Meat+0.66+9.2%
    Pastry+0.31+21.3%
    Nutrition−0.09−6.6%
    Meat (packaged)−0.32−5.7%
    Produce−0.42−5.4%
  5. STEP 5 / 7

    Know when they shop

    The question
    When should a promotion or a staffing change land?
    Why this chart
    Two categories (weekday, hour) and one value: a heatmap shows the whole week at once, and the pattern jumps out.
    What it says
    Weekends carry 32% of trips, and 36% of all trips happen between 3 and 7pm. The busiest hours are Sunday 4pm and Monday 5pm.

    Which chart would you pick?

    When people shop

    Share of all 2017 trips by weekday and hour (darker = busier)

    MonTueWedThuFriSatSunMon 12am: 0.09% of tripsMon 1am: 0.05% of tripsMon 2am: 0.07% of tripsMon 3am: 0.02% of tripsMon 4am: 0.02% of tripsMon 5am: 0.03% of tripsMon 6am: 0.10% of tripsMon 7am: 0.18% of tripsMon 8am: 0.29% of tripsMon 9am: 0.38% of tripsMon 10am: 0.61% of tripsMon 11am: 0.79% of tripsMon 12pm: 0.87% of tripsMon 1pm: 0.84% of tripsMon 2pm: 0.95% of tripsMon 3pm: 1.02% of tripsMon 4pm: 1.28% of tripsMon 5pm: 1.53% of tripsMon 6pm: 1.48% of tripsMon 7pm: 1.21% of tripsMon 8pm: 0.99% of tripsMon 9pm: 0.68% of tripsMon 10pm: 0.40% of tripsMon 11pm: 0.18% of tripsTue 12am: 0.09% of tripsTue 1am: 0.05% of tripsTue 2am: 0.07% of tripsTue 3am: 0.02% of tripsTue 4am: 0.01% of tripsTue 5am: 0.04% of tripsTue 6am: 0.12% of tripsTue 7am: 0.24% of tripsTue 8am: 0.30% of tripsTue 9am: 0.39% of tripsTue 10am: 0.57% of tripsTue 11am: 0.74% of tripsTue 12pm: 0.82% of tripsTue 1pm: 0.84% of tripsTue 2pm: 0.84% of tripsTue 3pm: 0.96% of tripsTue 4pm: 1.19% of tripsTue 5pm: 1.45% of tripsTue 6pm: 1.35% of tripsTue 7pm: 1.16% of tripsTue 8pm: 0.93% of tripsTue 9pm: 0.64% of tripsTue 10pm: 0.38% of tripsTue 11pm: 0.20% of tripsWed 12am: 0.09% of tripsWed 1am: 0.03% of tripsWed 2am: 0.05% of tripsWed 3am: 0.02% of tripsWed 4am: 0.01% of tripsWed 5am: 0.04% of tripsWed 6am: 0.10% of tripsWed 7am: 0.21% of tripsWed 8am: 0.27% of tripsWed 9am: 0.37% of tripsWed 10am: 0.52% of tripsWed 11am: 0.73% of tripsWed 12pm: 0.84% of tripsWed 1pm: 0.75% of tripsWed 2pm: 0.85% of tripsWed 3pm: 0.99% of tripsWed 4pm: 1.19% of tripsWed 5pm: 1.41% of tripsWed 6pm: 1.34% of tripsWed 7pm: 1.11% of tripsWed 8pm: 0.94% of tripsWed 9pm: 0.71% of tripsWed 10pm: 0.41% of tripsWed 11pm: 0.20% of tripsThu 12am: 0.11% of tripsThu 1am: 0.05% of tripsThu 2am: 0.07% of tripsThu 3am: 0.02% of tripsThu 4am: 0.02% of tripsThu 5am: 0.04% of tripsThu 6am: 0.13% of tripsThu 7am: 0.22% of tripsThu 8am: 0.30% of tripsThu 9am: 0.37% of tripsThu 10am: 0.53% of tripsThu 11am: 0.74% of tripsThu 12pm: 0.83% of tripsThu 1pm: 0.87% of tripsThu 2pm: 0.86% of tripsThu 3pm: 1.01% of tripsThu 4pm: 1.23% of tripsThu 5pm: 1.37% of tripsThu 6pm: 1.31% of tripsThu 7pm: 1.16% of tripsThu 8pm: 0.89% of tripsThu 9pm: 0.66% of tripsThu 10pm: 0.40% of tripsThu 11pm: 0.19% of tripsFri 12am: 0.08% of tripsFri 1am: 0.06% of tripsFri 2am: 0.05% of tripsFri 3am: 0.03% of tripsFri 4am: 0.02% of tripsFri 5am: 0.03% of tripsFri 6am: 0.11% of tripsFri 7am: 0.22% of tripsFri 8am: 0.32% of tripsFri 9am: 0.39% of tripsFri 10am: 0.60% of tripsFri 11am: 0.74% of tripsFri 12pm: 0.83% of tripsFri 1pm: 0.91% of tripsFri 2pm: 0.97% of tripsFri 3pm: 1.06% of tripsFri 4pm: 1.19% of tripsFri 5pm: 1.36% of tripsFri 6pm: 1.28% of tripsFri 7pm: 1.13% of tripsFri 8pm: 0.90% of tripsFri 9pm: 0.76% of tripsFri 10pm: 0.52% of tripsFri 11pm: 0.26% of tripsSat 12am: 0.15% of tripsSat 1am: 0.06% of tripsSat 2am: 0.08% of tripsSat 3am: 0.04% of tripsSat 4am: 0.03% of tripsSat 5am: 0.03% of tripsSat 6am: 0.08% of tripsSat 7am: 0.20% of tripsSat 8am: 0.35% of tripsSat 9am: 0.55% of tripsSat 10am: 0.83% of tripsSat 11am: 1.09% of tripsSat 12pm: 1.21% of tripsSat 1pm: 1.20% of tripsSat 2pm: 1.22% of tripsSat 3pm: 1.24% of tripsSat 4pm: 1.37% of tripsSat 5pm: 1.37% of tripsSat 6pm: 1.27% of tripsSat 7pm: 1.12% of tripsSat 8pm: 0.90% of tripsSat 9pm: 0.72% of tripsSat 10pm: 0.48% of tripsSat 11pm: 0.25% of tripsSun 12am: 0.12% of tripsSun 1am: 0.06% of tripsSun 2am: 0.06% of tripsSun 3am: 0.03% of tripsSun 4am: 0.01% of tripsSun 5am: 0.02% of tripsSun 6am: 0.06% of tripsSun 7am: 0.15% of tripsSun 8am: 0.27% of tripsSun 9am: 0.55% of tripsSun 10am: 0.81% of tripsSun 11am: 1.12% of tripsSun 12pm: 1.33% of tripsSun 1pm: 1.40% of tripsSun 2pm: 1.40% of tripsSun 3pm: 1.42% of tripsSun 4pm: 1.53% of tripsSun 5pm: 1.51% of tripsSun 6pm: 1.34% of tripsSun 7pm: 1.05% of tripsSun 8pm: 0.90% of tripsSun 9pm: 0.65% of tripsSun 10pm: 0.37% of tripsSun 11pm: 0.17% of trips12am6am9am12pm3pm6pm9pm

    Design note One colour, light to dark, so it works for colour-blind readers; the busiest hour is outlined.

    Share of trips by weekday
    DayShare of trips
    Mon14.1%
    Tue13.4%
    Wed13.2%
    Thu13.4%
    Fri13.8%
    Sat15.9%
    Sun16.3%
    Busiest hourSun 4pm (1.53%)
  6. STEP 6 / 7

    Ask what is in the basket

    The question
    Are baskets bigger because of discounts, or a different mix?
    Why this chart
    Three ratios that move by a point or two. Small multiples give each its own scale, so small moves stay visible.
    What it says
    The discount rate fell from 19.4% to 18.4%, so bigger baskets were not bought with deeper discounts. Private label held steady (29.8% → 29.3%), and fresh share slipped from 27% to 25.6%.

    Which chart would you pick?

    Is the basket changing?

    Share of sales by 4-week period, Jan → Dec 2017

    Fresh share

    25.6% −1.4 pts

    Private label share

    29.3% −0.5 pts

    Discount rate

    18.4% −1.0 pts

    Design note Small multiples with their own scales: these move by a point or two, which a shared axis would flatten.

    Basket mix, period 1 vs 13
    MeasureJanDec
    Fresh share27%25.6%
    Private label share29.8%29.3%
    Discount rate19.4%18.4%
  7. STEP 7 / 7

    Leave room for the follow-up

    The question
    "OK, but what about Deli?"
    Why this chart
    Every good dashboard ends with the detail behind the charts. A sortable table with a sparkline per row answers the next question without a new request.
    What it says
    Sort by any column. The default order matches the bar chart above, so the table and the chart tell the same story.

    Which chart would you pick?

    Department drill-down

    4-week sales by department; click a column to sort

    Trend
    Grocery$177.6k$189.8k+6.9%+3.83
    Drug GM$42.5k$53.8k+26.5%+3.55
    Miscellaneous$4.4k$8.5k+95.3%+1.31
    Other$8.9k$11.8k+32.8%+0.91
    Deli$10.3k$12.8k+25.0%+0.81
    Meat$22.9k$25.0k+9.2%+0.66
    Pastry$4.7k$5.7k+21.3%+0.31
    Nutrition$4.4k$4.1k−6.6%−0.09
    Meat (packaged)$18.2k$17.2k−5.7%−0.32
    Produce$24.4k$23.0k−5.4%−0.42

    Design note For the person who asks 'but what about Deli?'. The default sort matches the bar chart.

The finished dashboard

Grocery growth, 2017

The business at a glance

Latest 4-week period (Dec 2017) vs the first (Jan 2017)

Sales ex-fuel

$351.8k

▲ +10.5% vs Jan

Active households

2,004

▲ +2.9% vs Jan

Trips per household

5.39

▼ −2.0% vs Jan

Spend per trip

$32.54

▲ +9.6% vs Jan

Design note Four numbers only: the ones the bridge explains. Each shows change vs January so nobody has to do math.

KPIs, period 1 vs period 13
MetricJan 2017Dec 2017Change
Sales ex-fuel$318.2k$351.8k+10.5%
Active households1,9472,004+2.9%
Trips per household5.505.39−2.0%
Spend per trip$29.70$32.54+9.6%

Weekly sales, ex-fuel

Each week of 2017 (thin line) and the 4-week average (bold)

$70.0k$90.0k$110.0kJanMarMayJulSepNovPeak: $107.1k, wk of Dec 18

Design note Thin weekly line keeps the noise honest; the 4-week average carries the story. Month labels, not week numbers.

Weekly sales ex-fuel, 2017
Week startingSales
2017-01-02$88.4k
2017-01-09$78.2k
2017-01-16$77.6k
2017-01-23$74.0k
2017-01-30$91.0k
2017-02-06$84.4k
2017-02-13$76.1k
2017-02-20$80.7k
2017-02-27$85.1k
2017-03-06$79.2k
2017-03-13$79.6k
2017-03-20$77.4k
2017-03-27$81.2k
2017-04-03$80.8k
2017-04-10$83.3k
2017-04-17$75.0k
2017-04-24$75.8k
2017-05-01$89.8k
2017-05-08$84.0k
2017-05-15$83.0k
2017-05-22$80.8k
2017-05-29$86.0k
2017-06-05$84.8k
2017-06-12$80.2k
2017-06-19$71.2k
2017-06-26$83.2k
2017-07-03$91.0k
2017-07-10$77.8k
2017-07-17$77.2k
2017-07-24$75.3k
2017-07-31$89.6k
2017-08-07$79.8k
2017-08-14$77.7k
2017-08-21$76.0k
2017-08-28$81.4k
2017-09-04$86.1k
2017-09-11$75.4k
2017-09-18$76.6k
2017-09-25$77.6k
2017-10-02$84.6k
2017-10-09$80.7k
2017-10-16$77.5k
2017-10-23$79.9k
2017-10-30$92.3k
2017-11-06$80.8k
2017-11-13$85.6k
2017-11-20$86.5k
2017-11-27$84.5k
2017-12-04$87.0k
2017-12-11$81.6k
2017-12-18$107.1k

What drove the growth

Sales grew 10.5% Jan → Dec 2017; 10 log points split into three drivers

0510+2.9More households−2.0Fewer tripseach+9.1Bigger baskets+10.0Total growth

Design note A bridge, because the question is 'what adds up to +10?'. Log points are used so the parts sum exactly.

Growth bridge, log points
DriverLog points
More households+2.9
Fewer trips each−2.0
Bigger baskets+9.1
Total growth+10.0

Which departments grew

Points of the total sales change, Jan → Dec (label: department's own % change)

Grocery+3.8 (+7%)Drug GM+3.5 (+27%)Miscellaneous+1.3 (+95%)Other+0.9 (+33%)Deli+0.8 (+25%)Meat+0.7 (+9%)Pastry+0.3 (+21%)Nutrition−0.1 (−7%)Meat (packaged)−0.3 (−6%)Produce−0.4 (−5%)

Design note Sorted by contribution, not alphabetically; diverging from zero so declines read as declines.

Department contribution to sales change
DepartmentPoints of changeOwn change
Grocery+3.83+6.9%
Drug GM+3.55+26.5%
Miscellaneous+1.31+95.3%
Other+0.91+32.8%
Deli+0.81+25.0%
Meat+0.66+9.2%
Pastry+0.31+21.3%
Nutrition−0.09−6.6%
Meat (packaged)−0.32−5.7%
Produce−0.42−5.4%

When people shop

Share of all 2017 trips by weekday and hour (darker = busier)

MonTueWedThuFriSatSunMon 12am: 0.09% of tripsMon 1am: 0.05% of tripsMon 2am: 0.07% of tripsMon 3am: 0.02% of tripsMon 4am: 0.02% of tripsMon 5am: 0.03% of tripsMon 6am: 0.10% of tripsMon 7am: 0.18% of tripsMon 8am: 0.29% of tripsMon 9am: 0.38% of tripsMon 10am: 0.61% of tripsMon 11am: 0.79% of tripsMon 12pm: 0.87% of tripsMon 1pm: 0.84% of tripsMon 2pm: 0.95% of tripsMon 3pm: 1.02% of tripsMon 4pm: 1.28% of tripsMon 5pm: 1.53% of tripsMon 6pm: 1.48% of tripsMon 7pm: 1.21% of tripsMon 8pm: 0.99% of tripsMon 9pm: 0.68% of tripsMon 10pm: 0.40% of tripsMon 11pm: 0.18% of tripsTue 12am: 0.09% of tripsTue 1am: 0.05% of tripsTue 2am: 0.07% of tripsTue 3am: 0.02% of tripsTue 4am: 0.01% of tripsTue 5am: 0.04% of tripsTue 6am: 0.12% of tripsTue 7am: 0.24% of tripsTue 8am: 0.30% of tripsTue 9am: 0.39% of tripsTue 10am: 0.57% of tripsTue 11am: 0.74% of tripsTue 12pm: 0.82% of tripsTue 1pm: 0.84% of tripsTue 2pm: 0.84% of tripsTue 3pm: 0.96% of tripsTue 4pm: 1.19% of tripsTue 5pm: 1.45% of tripsTue 6pm: 1.35% of tripsTue 7pm: 1.16% of tripsTue 8pm: 0.93% of tripsTue 9pm: 0.64% of tripsTue 10pm: 0.38% of tripsTue 11pm: 0.20% of tripsWed 12am: 0.09% of tripsWed 1am: 0.03% of tripsWed 2am: 0.05% of tripsWed 3am: 0.02% of tripsWed 4am: 0.01% of tripsWed 5am: 0.04% of tripsWed 6am: 0.10% of tripsWed 7am: 0.21% of tripsWed 8am: 0.27% of tripsWed 9am: 0.37% of tripsWed 10am: 0.52% of tripsWed 11am: 0.73% of tripsWed 12pm: 0.84% of tripsWed 1pm: 0.75% of tripsWed 2pm: 0.85% of tripsWed 3pm: 0.99% of tripsWed 4pm: 1.19% of tripsWed 5pm: 1.41% of tripsWed 6pm: 1.34% of tripsWed 7pm: 1.11% of tripsWed 8pm: 0.94% of tripsWed 9pm: 0.71% of tripsWed 10pm: 0.41% of tripsWed 11pm: 0.20% of tripsThu 12am: 0.11% of tripsThu 1am: 0.05% of tripsThu 2am: 0.07% of tripsThu 3am: 0.02% of tripsThu 4am: 0.02% of tripsThu 5am: 0.04% of tripsThu 6am: 0.13% of tripsThu 7am: 0.22% of tripsThu 8am: 0.30% of tripsThu 9am: 0.37% of tripsThu 10am: 0.53% of tripsThu 11am: 0.74% of tripsThu 12pm: 0.83% of tripsThu 1pm: 0.87% of tripsThu 2pm: 0.86% of tripsThu 3pm: 1.01% of tripsThu 4pm: 1.23% of tripsThu 5pm: 1.37% of tripsThu 6pm: 1.31% of tripsThu 7pm: 1.16% of tripsThu 8pm: 0.89% of tripsThu 9pm: 0.66% of tripsThu 10pm: 0.40% of tripsThu 11pm: 0.19% of tripsFri 12am: 0.08% of tripsFri 1am: 0.06% of tripsFri 2am: 0.05% of tripsFri 3am: 0.03% of tripsFri 4am: 0.02% of tripsFri 5am: 0.03% of tripsFri 6am: 0.11% of tripsFri 7am: 0.22% of tripsFri 8am: 0.32% of tripsFri 9am: 0.39% of tripsFri 10am: 0.60% of tripsFri 11am: 0.74% of tripsFri 12pm: 0.83% of tripsFri 1pm: 0.91% of tripsFri 2pm: 0.97% of tripsFri 3pm: 1.06% of tripsFri 4pm: 1.19% of tripsFri 5pm: 1.36% of tripsFri 6pm: 1.28% of tripsFri 7pm: 1.13% of tripsFri 8pm: 0.90% of tripsFri 9pm: 0.76% of tripsFri 10pm: 0.52% of tripsFri 11pm: 0.26% of tripsSat 12am: 0.15% of tripsSat 1am: 0.06% of tripsSat 2am: 0.08% of tripsSat 3am: 0.04% of tripsSat 4am: 0.03% of tripsSat 5am: 0.03% of tripsSat 6am: 0.08% of tripsSat 7am: 0.20% of tripsSat 8am: 0.35% of tripsSat 9am: 0.55% of tripsSat 10am: 0.83% of tripsSat 11am: 1.09% of tripsSat 12pm: 1.21% of tripsSat 1pm: 1.20% of tripsSat 2pm: 1.22% of tripsSat 3pm: 1.24% of tripsSat 4pm: 1.37% of tripsSat 5pm: 1.37% of tripsSat 6pm: 1.27% of tripsSat 7pm: 1.12% of tripsSat 8pm: 0.90% of tripsSat 9pm: 0.72% of tripsSat 10pm: 0.48% of tripsSat 11pm: 0.25% of tripsSun 12am: 0.12% of tripsSun 1am: 0.06% of tripsSun 2am: 0.06% of tripsSun 3am: 0.03% of tripsSun 4am: 0.01% of tripsSun 5am: 0.02% of tripsSun 6am: 0.06% of tripsSun 7am: 0.15% of tripsSun 8am: 0.27% of tripsSun 9am: 0.55% of tripsSun 10am: 0.81% of tripsSun 11am: 1.12% of tripsSun 12pm: 1.33% of tripsSun 1pm: 1.40% of tripsSun 2pm: 1.40% of tripsSun 3pm: 1.42% of tripsSun 4pm: 1.53% of tripsSun 5pm: 1.51% of tripsSun 6pm: 1.34% of tripsSun 7pm: 1.05% of tripsSun 8pm: 0.90% of tripsSun 9pm: 0.65% of tripsSun 10pm: 0.37% of tripsSun 11pm: 0.17% of trips12am6am9am12pm3pm6pm9pm

Design note One colour, light to dark, so it works for colour-blind readers; the busiest hour is outlined.

Share of trips by weekday
DayShare of trips
Mon14.1%
Tue13.4%
Wed13.2%
Thu13.4%
Fri13.8%
Sat15.9%
Sun16.3%
Busiest hourSun 4pm (1.53%)

Is the basket changing?

Share of sales by 4-week period, Jan → Dec 2017

Fresh share

25.6% −1.4 pts

Private label share

29.3% −0.5 pts

Discount rate

18.4% −1.0 pts

Design note Small multiples with their own scales: these move by a point or two, which a shared axis would flatten.

Basket mix, period 1 vs 13
MeasureJanDec
Fresh share27%25.6%
Private label share29.8%29.3%
Discount rate19.4%18.4%

Department drill-down

4-week sales by department; click a column to sort

Trend
Grocery$177.6k$189.8k+6.9%+3.83
Drug GM$42.5k$53.8k+26.5%+3.55
Miscellaneous$4.4k$8.5k+95.3%+1.31
Other$8.9k$11.8k+32.8%+0.91
Deli$10.3k$12.8k+25.0%+0.81
Meat$22.9k$25.0k+9.2%+0.66
Pastry$4.7k$5.7k+21.3%+0.31
Nutrition$4.4k$4.1k−6.6%−0.09
Meat (packaged)$18.2k$17.2k−5.7%−0.32
Produce$24.4k$23.0k−5.4%−0.42

Design note For the person who asks 'but what about Deli?'. The default sort matches the bar chart.

84.51° The Complete Journey (2,469 households, 2017); aggregates from the Grocery Growth Drivers dbt models. Grouped totals only, built with a Python + DuckDB script.

So what

Hypotheses to take to the category team, not conclusions: this is one year of data.

  1. Grow the basket, not the traffic. +9.1 of 10 points came from spend per trip. Promotions aimed at adding one more item likely beat ones aimed at new shoppers.
  2. Look hard at fresh. Produce and packaged meat shrank while general merchandise grew; fresh share fell 1.4 pts. Worth checking price, quality and availability.
  3. Time it for late afternoon. 36% of trips land between 3 and 7pm, and weekends carry 32%. That's where promos and staff do the most.

Next: add a second year to separate growth from seasonality. That work lives in the Grocery Growth Drivers case study (in progress).

How it's built

  • dbt star schema over the 84.51° Complete Journey data (from the Grocery Growth Drivers project).
  • DuckDB + Python: one script turns the models into grouped totals; department sales add back to total sales to the dollar.
  • Hand-built SVG: every tile is drawn at build time, with no chart library, and has a hidden data table for screen readers.

Component ideas inspired by Josh Tapley'sAI Driven Dashboard Component Library. Data: 84.51° The Complete Journey (CC0). Independent project; not affiliated with Kroger or 84.51°.

Connections

Linked tools & methods

  • dbtTransforms raw warehouse tables into tested, documented models with SQL.Also in: VirtueSoft · Ad Creative Pretest Lab · Query Guard · Grocery Growth Drivers · dbt open source
  • DuckDBFast in-process analytical database; runs SQL on local files with no server.
  • PythonGeneral-purpose language used for data cleaning, analysis, automation and modeling.Also in: VirtueSoft · University of Cincinnati · NextSquare · Analyst · Kroger coupon leak · Ad Creative Pretest Lab · Grocery Growth Drivers · Lead Scoring
  • SQLThe language for querying relational databases; the core of most analysis work.Also in: VirtueSoft · Jabil · NextSquare · Senior · NextSquare · Analyst · Query Guard · Grocery Growth Drivers · Lead Scoring
  • Data visualizationChoosing and building the chart that answers the question honestly.

Linked from 11 other items

Open the full graph →