Define the sale before you total it
The ecommerce files hold several amounts. line_total is item revenue after line discounts and before tax and shipping: 60,483,519.62 across all order lines, or 58,719,861.14 once the 2,976 cancelled orders are left out. order_total adds tax and shipping. Successful payments total 63,458,562.67 and refunds total 3,387,902.65. Say which one your report uses.
Pick the dataset by the question
For revenue by product, customer, or month, and for margin, use the ecommerce orders. For billed against collected revenue by plan, use SaaS subscriptions. For revenue per advertising dollar, use marketing campaigns. For units sold against stock and receipts, use inventory, which records each sale as a quantity with no price.
Sum each table at its own grain
Grain is what one row of a table represents. An order can have several lines and several payment attempts. Joining order lines to payments before summing repeats each line once per attempt, and the item revenue for orders that were not cancelled grows from 58,719,861.14 to 62,015,901.22. Total each table first, or use the flat sales file, which has one row per order line.
Synthetic data with realistic structure
All four datasets are generated to model fictional businesses, so their totals are not industry benchmarks. The structure is what you meet at work: keys, statuses, discounts, failed payments, refunds, and cancelled orders. That makes them suitable for practice, teaching, and portfolio projects, with credit to the source.
Where can I download a free sales dataset?
Every dataset on this page is free to download with an account. The ecommerce dataset is the usual starting point: 100,000 orders and 237,537 order lines from January 2023 to December 2025, with customers, products, payments, and refunds in linked tables. It comes as CSV files, a SQLite database, an Excel workbook, and a Parquet file.
Is there a sales dataset in Excel format?
Yes, two. The Excel practice workbook has 39,922 order lines from July to December 2025 with eight tasks and an Answers sheet, and its amounts are stored as numbers. The analysis-ready workbook has one row per order, 100,000 rows, but stores decimal amounts as text, so convert them before you sum. The flat sales CSV also opens in Excel.
Is there a single sales CSV file?
Yes. The flat sales file is a ZIP that contains sales_lines.csv: one row per order line, 237,537 rows and 18 columns, with the order date, order status, customer country and segment, product name and category, quantity, unit price, discount, line total, line cost, and gross profit already joined in. No lookups are needed before you start.
Which dataset has sales by product?
The ecommerce dataset. It has 1,200 products in six categories, 200 in each, and every order line records the product, quantity, unit price, and discount, so you can rank products and categories by revenue or margin. The inventory dataset has 2,500 products and records 55,441 sale movements in units by product and warehouse, without prices.
Is this real sales data?
No. The four datasets are synthetic: generated to model a fictional online store, subscription business, marketing team, and warehouse network. They contain no real customers or companies, and their totals are not benchmarks. They are licensed CC BY 4.0, so you can use them in a course, a tutorial, or a portfolio project if you credit Analytics Engineering.
What is the difference between sales, payments, and refunds in these files?
They are separate events in separate tables. An order line records what was sold and for how much. A payment records an attempt to collect, which can fail: the ecommerce data has 105,388 attempts. A refund records money returned later: 7,910 rows. Item revenue, cash collected, and cash net of refunds are three different totals, so choose one and name it.