learntodriveai.dev/Analytics & BI/Sales Channel Analysis
Analytics & BIProject 015 unitsVerified on 16 October 2026

Sales Channel Analysis

Naledi KhumaloOwner and lead designer · Furniture workshop · Cape Town, South Africa
Email · from Naledi
Revenue is up, but between retail commissions (35-45%), shipping costs on the online stuff, and the time I spend on direct commissions, the picture isn't clear enough to make decisions on.
Chat with Naledi

What you hand back

  • Verified net revenue by channel
  • Channel profit margins after commissions and costs
  • Revenue per workshop-week by product type
  • Four charts with titled, labeled axes
  • An executive summary with recommendation
  • A README and pushed project repository

5 units

  1. Unit 1: The brief

    Read Naledi's email, set up the project, and go through the data dictionary, analysis spec, and metric definitions.

    Open unit 1
  2. Unit 2: Profile the data

    Load the sales data into DuckDB, profile every column against the data dictionary, and check row, date, channel, and refund counts.

    Open unit 2
  3. Unit 3: Compute the metrics

    Compute net revenue, channel profit margins, and revenue per workshop-week, checking each against known values and catching refund errors.

    Open unit 3
  4. Unit 4: Build the charts

    Build four charts, fix weak titles, axes, and defaults, and confirm each chart uses the verified figures.

    Open unit 4
  5. Unit 5: Write the findings and deliver

    Draft the narrative from verified numbers, correct it, deliver it to Naledi, and push the README and repository.

    Open unit 5
Read the full brief

You're building a sales channel analysis for a furniture workshop in Cape Town — computing revenue, margins, and production efficiency across three sales channels, then writing the findings into a client-ready narrative.

The discipline skills: loading data into DuckDB, profiling it against a data dictionary, computing metrics from provided definitions, building charts that answer specific business questions, and writing findings into an executive summary with recommendations.

The AI-direction lesson: this is your first time directing AI through a full analytics workflow. AI will compute the numbers, generate the charts, and draft the findings. Most of it will look right. The skill is noticing when it isn't — when AI computes "total revenue" using a formula that includes refunds the definition excludes, or generates a chart with a truncated y-axis that misrepresents the trend. Checking AI's output against provided verification targets is the practice that makes everything else trustworthy.

Your Role

You're picking up this analysis. You have Claude Code, DuckDB, Jupyter, and the full analytics toolkit from setup. Your job is to direct AI through the work — loading the data, computing the numbers, building the charts, writing the findings — and make sure what comes back is actually right.

AI handles the computation. You handle the thinking. When AI computes "total revenue," it doesn't check whether that number matches what Naledi's business actually means by revenue. That's on you.

What's New

Setup gave you the tools and a single-prompt demo. This is the first time you're doing it for real — for a client who needs the answer.

Everything is provided: an analysis spec that tells you what to compute, metric definitions that tell you what the numbers mean, a data dictionary that documents every column, chart specs, a narrative template, and verification targets so you can check AI's output against known-correct values. Your focus is on the loop itself — understanding the sequence from data to insight to communication — not on figuring out what to do next.

The hard part is not the computation. It's noticing when AI's number looks right but isn't — because it included refunds the definition excludes, or aggregated before deduplicating, or generated a chart with a truncated y-axis that misrepresents the trend.

Tools

  • Python 3.11+ (via Miniconda, "analytics" environment)
  • DuckDB
  • Jupyter Notebook
  • pandas
  • matplotlib / seaborn
  • Claude Code
  • Git / GitHub

Materials

You'll work with these provided files:

  • Dataset — twelve months of furniture sales data (~850 rows)
  • Data dictionary — column definitions, types, constraints, and what each value means
  • Analysis spec — the four business questions, expected outputs, chart specifications, and verification targets
  • Metric definitions — precise definitions for revenue, profit margin, and revenue per workshop-week
  • Narrative template — executive summary, key findings, and recommendation structure
Materials · 6 files
Start Project 1

You work at a computer with a terminal. Signed in, your place is saved.