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
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
Actual minus plan by region
Inspect the exact regional reconciliation
| Region | Plan | Actual | Variance | Volume/mix | Net 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.
REPRODUCIBLE WORKFLOW
Choose. Build. Check. Communicate.
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.
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.
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.
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
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.

BUILD IT YOURSELF
Download the reproducible lab.
Download the complete lab
Both CSVs, SQL, Python, validation tests, offline report, prompts and comparison worksheet
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.pyOpen 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.