Skip to content

LAB 01 · FREE HANDS-ON EXAMPLE

Why did quarterly net sales miss plan by $1.085M?

Turn raw orders and plan data into a sales variance analysis your CFO can verify.

Download the working lab; vendor comparison to follow

Tested December 4, 2026 · July to September 2026 · USD · Fictional business

THE EXECUTIVE QUESTION

Make the shortfall explainable.

The CFO needs a board-ready explanation of the quarterly net sales shortfall. Which regions and products explain the gap, and how much is unit volume/product mix versus realized net price? Combine individual orders with monthly sales plans and check the answer before presenting it.

VERIFIED OUTPUT

The answer in the data

Net sales plan$18,465,500.00Quarterly plan
Actual net sales$17,380,724.49Gross sales less discounts and refunds
Actual minus plan−$1,084,775.51-5.87% versus plan
Volume / mix−$833,906.00
Net price−$250,869.51
Total gap−$1,084,775.51

Actual minus plan by region

USD · Negative = below plan · Positive = above plan

West−$968,500.52
Central−$364,961.55
South−$35,249.34
East+$283,935.90
Inspect the exact regional reconciliation
Management net sales and variance effects (USD)
RegionPlanActualVarianceVolume/mixNet price
West$5,828,500.00$4,859,999.48−$968,500.52−$972,684.00+$4,183.48
Central$3,876,680.00$3,511,718.45−$364,961.55−$101,930.00−$263,031.55
South$4,169,520.00$4,134,270.66−$35,249.34+$7,843.00−$43,092.34
East$4,590,800.00$4,874,735.90+$283,935.90+$232,865.00+$51,070.90

WHAT TO DO NEXT

Where should leadership investigate first?

West: investigate the volume shortfall

West is $968,500.52 below plan. Its $972,684 unfavorable volume/mix effect is partly offset by net price. Check pipeline, fulfillment and product availability before assigning a cause.

Central: review realized net pricing

Central is $364,961.55 below plan; $263,031.55 of the gap is the net-price effect, including discounts and credits. Inspect approval patterns and customer/product mix.

East partially offsets the shortfall

East is $283,935.90 above plan. Confirm the underlying drivers and repeatability before moving resources or extrapolating growth.

Use these findings to prioritize investigation, not to assign causes before checking the evidence.

REPRODUCIBLE WORKFLOW

Choose. Build. Check. Communicate.

01

Choose the business measure

Define Q3 net sales in dollars, match order details to monthly plan data, and assign discounts and refunds to the original sale month.

02

Build the local calculation

Summarize orders by month, region and product before joining to the plan. Use DuckDB and integer cents to separate volume/mix from net-price effects.

03

Verify independently

Independent Python code checks every total. It detects duplicate rows, invalid amounts, unmatched sales, and dates outside the quarter, including planned items with no sales.

04

Present the board-ready result

Report verified totals, the regions driving the gap, assumptions and next steps. Make clear which causes still need investigation.

Independent check: PASS

3,546Unique order lines
36Plan cells
360Detailed metrics matched
7Regression tests passed

Reference engine: Python 3.12 / DuckDB 2.0.1. Regional, monthly, product and enterprise totals reconcile.

THE SEVEN-DIMENSION SCORECARD

Compare equivalent capabilities.

The Python and DuckDB answer is verified. Claude and Power BI Copilot comparisons will use the same data and task. Until those tests are complete, the scorecard describes the lab, not a vendor ranking or savings estimate.

Accuracy

Tested

Lab result: 36 cells; 360 detailed metrics agree with independent Python. Region, month, product and enterprise rollups reconcile.

What to compare: Exact cells, total and bridge; record initial versus corrected answer.

Development

Partial

Lab result: Executable SQL and Python supplied; development time not benchmarked.

What to compare: Time from setup to a checked answer, including rework.

Cost

Not measured

Lab result: Local calculation executed; full license, machine and labor costs not measured.

What to compare: License, infrastructure and staff costs for the same users and requirements.

Functionality

Partial

Lab result: CSV ingestion, bridge, validations, static report and detail exports executed.

What to compare: Compare dashboard, drilldowns, exports, delivery and refresh at equivalent scope.

Governance

Partial

Lab result: Synthetic inputs and input validation. No production auth or access controls.

What to compare: Test identity, access roles, privacy, security, lineage and retention.

Maintenance

Partial

Lab result: Pinned dependency, deterministic generator, SQL and checks. Scheduled refresh not tested.

What to compare: Refresh, recovery, updates and handover to another analyst.

Usability

Partial

Lab result: Offline HTML report and exact detail exports; no representative user test.

What to compare: Measure task completion, clarity, errors and feedback.

VERIFY WHAT LEADERS SEE

Check the dashboard as well as the numbers.

The report labels the period, currency, metric definition, synthetic source and owner. The calculation and its rollups are verified separately. Dashboard Preflight can review visible risks using its catalog of 93 standard rules and eligible company-specific rules.

See five real Dashboard Preflight reviews for examples of visual checks you can apply to the lab report.

Existing Dashboard Preflight example with numbered visual findings and suggested fixes
Existing product example, separate from this lab.

BUILD IT YOURSELF

Download the reproducible lab.

Download the complete lab

Both CSVs, SQL, Python, validation tests, offline report, prompts and comparison worksheet

Free, no signup required. Synthetic data only.

Download ZIP
Actual orders (CSV)Plan (CSV)DuckDB SQLPython sourceExact results (JSON)Comparison scorecard (CSV)

After unzipping, run from the lab directory:

uv run --with-requirements requirements.txt python run_lab.py
uv run --with-requirements requirements.txt python test_lab.py

Open output/report.html locally. The bundled README also includes virtual-environment instructions and an explicit data dictionary.

EVIDENCE & SCOPE

What this lab establishes.

  • Fictional training data.
  • Management net sales, not GAAP revenue recognition. The arithmetic volume/mix and net-price effects are not causal estimates.
  • Local prototype only: no production connectors, scheduled refresh, authentication, row-level security or service SLA demonstrated.
  • The lab includes Claude prompts. Vendor results will be added after the comparison.

Vendor preparation resources

Vendor documentation reviewed December 4, 2026.

KEEP LEARNING

Become an exceptional AI-enabled analyst.

Go beyond a single calculation. The course teaches you to frame decisions, use AI, verify answers, design dashboards and build repeatable workflows.

THE ACCIDENTAL ANALYST · FREE NEWSLETTER

Keep building. Keep learning.

Get BI Challenge episodes, course and workshop announcements, and practical AI analytics insights.

Can’t see the signup form? Open the newsletter signup directly.

Free. Unsubscribe anytime.