Define
Set eligible line, order and calendar-month rules.
↗INDEPENDENT PROJECT / SQL + PYTHON / 2026 / 02
A trading dashboard built on explicit definitions and reconciled results.
EXPLORE THE STORY ↓12 complete months · 19,141 eligible orders
THE BUSINESS PROBLEM
Trading totals and customer analysis use different populations. Make the definitions visible before drawing conclusions.
Dec 2010–Nov 2011. Positive invoice value is not net revenue. Figures come from reconciled SQL and Python outputs.
WHAT I DID
Set eligible line, order and calendar-month rules.
↗Aggregate monthly and country metrics in SQL and pandas.
↗Match totals and quantify the impact of data-quality decisions.
↗THE RESULTS
SQL and Python totals match. The UK accounts for 84.06% of invoice value; 16.34% comes from unidentified customers.
United Kingdom
Other markets
Unidentified
Identified
Separate trading performance from customer behaviour. Review the duplicate policy before production use.
↗THE EVIDENCE / GO DEEPER
LET’S DISCUSS YOUR PROJECT ↗How is trading changing across months and markets — and can decision-makers trust that every KPI uses the same definition?
Profiled the source, quantified missing customer identities and cancellations, applied a documented exact-row deduplication policy, and selected twelve complete calendar months. Built SQL aggregates in SQLite and checked them against pandas totals.
The UK represents 84.06% of positive invoice value. Unidentified customers account for 16.34% of value, so a customer-only view would omit a meaningful part of trading. Retaining exact duplicate rows would add £23,571.39; the difference is quantified rather than silently discarded.
Separate trading KPIs from customer-behaviour reporting, disclose coverage, and review the duplicate policy with the data owner before production use. Monitor market concentration alongside growth.
December 2010–November 2011. Positive invoice value excludes cancellations and nonpositive prices or quantities, but includes eligible positive fee/adjustment lines. It is not net revenue, profit, or return-adjusted sales. December 2011 is incomplete and excluded.
Python pipeline, SQL queries, reconciled monthly and country aggregates, data-quality checks, metric dictionary, and a Power BI implementation starter. The interactive chart here reads the actual computed results; the Power BI starter is a specification, not a completed PBIX.
Data: Daqing Chen, Online Retail (2015), UCI. DOI 10.24432/C5BW33 · CC BY 4.0. Independent analysis of historical public data; recommendations have not been tested in a live business.
YOUR NEXT MOVE