Retail
A year of US and Canadian retail: what was ordered, through which channel, under which campaign, and what is left in the warehouses.
The datasets
Each box is a dataset and each arrow a reference, from the dataset that holds it to the one it points to. Select a box to jump to its properties.
Suppliers
The vendors the catalogue is bought from, with where they are based and how well they perform. One row per supplier; every product comes from one, so a product or an order line can be traced back to its source.
| Name | Type | Description |
|---|---|---|
| Supplier Id | Id | Vendor number of the supplier in the ERP, V and six digits. Its display name is the supplier's name. |
| City | Attribute | City the supplier is based in. |
| State | Attribute | Two-letter US state or Canadian province the supplier is based in. |
| Country | Global attribute Country | ISO 3166-1 alpha-2 country of the supplier — US or CA — shared with the built-in country reference data. |
| Rating | Measure | Vendor scorecard rating, one to five with one decimal. Every supplier is rated, so there is no missing-value convention here. |
| Founded At | Time | When the supplier was founded — a decade before the catalogue's oldest product, so it segments by year. |
Example records
Five real records, one column per property.
| Supplier Id | City | State | Country | Rating | Founded At |
|---|---|---|---|---|---|
| V100002 (Lumina Supply) | South Bend | IN | US | 3.0 | 2011-06-14 18:42 |
| V100011 (Unity Distributors) | Rochester | MN | US | 5.0 | 2018-05-13 18:48 |
| V100027 (Frontier Supply Co) | Ann Arbor | MI | US | 4.0 | 2011-11-30 10:48 |
| V100118 (Cobalt Trading) | Dallas | TX | US | 2.0 | 2019-05-14 06:34 |
| V100168 (Ironclad Wholesale) | Augusta | GA | US | 1.0 | 2018-01-14 17:51 |
Warehouses
The distribution centres stock is held in. One row per site; the inventory table records what each of them holds of each product.
| Name | Type | Description |
|---|---|---|
| Warehouse Id | Id | Distribution-centre code of the warehouse, DC- and a three-digit site number. Its display name is the site's name. |
| City | Attribute | City the warehouse is in. |
| State | Attribute | Two-letter US state or Canadian province the warehouse is in. |
| Country | Global attribute Country | ISO 3166-1 alpha-2 country of the warehouse — US or CA — shared with the built-in country reference data. |
| Sqft | Measure | Floor area of the site, in square feet. Use it to normalise stock held per site. |
Example records
Five real records, one column per property.
| Warehouse Id | City | State | Country | Sqft |
|---|---|---|---|---|
| DC-101 (Harbor Fulfillment) | Norman | OK | US | 397079 |
| DC-102 (Southwest Hub) | Cleveland | OH | US | 167246 |
| DC-103 (Southwest Hub) | Boulder | CO | US | 187858 |
| DC-104 (Sunbelt Hub) | Erie | PA | US | 311626 |
| DC-107 (Great Lakes DC) | Regina | SK | CA | 205704 |
Products
The catalogue — what is for sale, what it is classified as, what it costs to buy and what it sells for. One row per product; order lines and stock levels both reference it.
| Name | Type | Description |
|---|---|---|
| Product Id | Id | Stock-keeping unit of the product, for example SKU-48213-B — the item number and a variant letter. Its display name is the product's name. |
| Category | Attribute | Top-level department the product sits in, for example Electronics, Apparel or Grocery. Some categories are growing across the year and others declining, which is what makes a trend over this column worth plotting. |
| Subcategory | Attribute | The finer classification inside the category, for example Laptops inside Electronics. Always consistent with the category on the same row. |
| Brand | Attribute | Brand the product is sold under. A handful of them are positioned as luxury and carry five to fifteen times the usual price. |
| Unit Price | Measure | List price of one unit, in US dollars, to two decimals. An order line records the price actually charged, in the order's own currency, which may differ. |
| Cost | Measure | What one unit costs to buy in, in US dollars, to two decimals. Subtract it from the unit price for gross margin. |
| Weight Grams | Measure | Shipping weight of one unit, in grams. |
| Launched At | Time | When the product entered the catalogue. Spread over 2020-2024, so new and long-standing products coexist. |
| Supplier | Reference to Suppliers | The supplier the product is bought from. Follow it to reach supplier location and rating from an order line. |
Example records
Five real records, one column per property.
| Product Id | Category | Subcategory | Brand | Unit Price | Cost | Weight Grams | Launched At | Supplier |
|---|---|---|---|---|---|---|---|---|
| SKU-10002-Q (Orbit Media Players Sport Model) | Streaming Devices | Media Players | Orbit | 149.08 | 69.03 | 7633 | 2024-05-19 09:52 | V100086 |
| SKU-10011-C (Summit Organic Edge Collection) | Grocery | Organic | Summit | 28.60 | 16.80 | 4499 | 2024-04-09 07:41 | V100188 |
| SKU-10016-L (Vanta Watches Sport Collection) | Jewelry | Watches | Vanta | 839.17 | 338.75 | 7768 | 2023-10-13 22:15 | V100127 |
| SKU-10027-K (Fieldstone Furniture Elite Model) | Office Supplies | Furniture | Fieldstone | 18.41 | 7.93 | 7074 | 2023-02-05 09:17 | V100142 |
| SKU-10031-M (Ironclad Accessories Premium Plus) | Electronics | Accessories | Ironclad | 1280.52 | 452.27 | 13300 | 2022-06-29 18:49 | V100002 |
Campaigns
The marketing pushes run during the year, with what each one cost and who it was aimed at. One row per campaign; an order records the campaign it is attributed to, which is how spend is put beside revenue.
| Name | Type | Description |
|---|---|---|
| Campaign Id | Id | Campaign code, CMP-2025- and a four-digit sequence. Its display name is the campaign's name. |
| Channel | Attribute | Where the campaign ran, for example Email, Paid Search, Social Media or SMS. |
| Target Segment | Attribute | Audience the campaign was aimed at, for example New Customers, Lapsed or Cart Abandoners. |
| Budget | Measure | Spend committed to the campaign, in US dollars, to two decimals. Divide attributed order revenue by it for a return on spend. |
| Started At | Time | When the campaign went live. Inside the same 2025 window as the orders. |
| Duration Days | Measure | How long the campaign ran, in days — three to ninety. |
Example records
Five real records, one column per property.
| Campaign Id | Channel | Target Segment | Budget | Started At | Duration Days |
|---|---|---|---|---|---|
| CMP-2025-0001 (Gamers' Weekend 2025) | Push Notification | Lapsed | 54854.81 | 2025-01-04 17:15 | 40 |
| CMP-2025-0002 (Free Shipping Week 2025) | SMS | Cart Abandoners | 34100.08 | 2025-12-18 03:10 | 28 |
| CMP-2025-0003 (Outdoor Adventure 2025) | Social Media | New Customers | 54662.80 | 2025-06-09 19:06 | 36 |
| CMP-2025-0005 (Wellness Reset 2025) | Paid Search | Loyalty Members | 46804.83 | 2025-07-24 22:15 | 77 |
| CMP-2025-0008 (New Year Refresh 2025) | All Customers | 28845.99 | 2025-05-07 10:20 | 35 |
Customers
The shoppers — where they live, how they are segmented and how long they have been buying. One row per customer; every order references one.
| Name | Type | Description |
|---|---|---|
| Customer Id | Id | Customer number from the online store, a thirteen-digit number (not contiguous), unique per row. The only way a shopper is identified — the model carries no name or e-mail address. Count it to answer "how many customers?". |
| City | Attribute | City the customer lives in. Always one that belongs to the state on the same row. |
| State | Attribute | Two-letter US state or Canadian province the customer lives in, weighted by population. |
| Country | Global attribute Country | ISO 3166-1 alpha-2 country of the customer — US or CA, derived from the state — shared with the built-in country reference data. |
| Postal Code | Attribute | Postal code of the customer's address: a five-digit ZIP in the US, a six-character postal code in Canada. |
| Segment | Attribute | Where the customer sits in the lifecycle: New, Returning, VIP, Dormant or At Risk. |
| Loyalty Tier | Attribute | Loyalty standing, from Bronze through Silver and Gold to Platinum. Empty for a customer who has not joined the programme, about 40 % of them. |
| Age Group | Attribute | Age band the customer falls in, from 18-24 to 65+. |
| Gender | Attribute | Gender the customer gave, including Prefer not to say. |
| Registered At | Time | When the customer first registered. Runs from 2022, so it reaches back three years before the order window. |
Example records
Five real records, one column per property. An empty cell is a value that is absent — left empty, never filled with a zero or a placeholder.
| Customer Id | City | State | Country | Postal Code | Segment | Loyalty Tier | Age Group | Gender | Registered At |
|---|---|---|---|---|---|---|---|---|---|
| 7402318000027 | Rochester | NY | US | 69393 | New | Platinum | 25-34 | Male | 2023-06-08 10:14 |
| 7402318002175 | Bellevue | NE | US | 32221 | Dormant | Silver | 65+ | Male | 2024-08-28 08:33 |
| 7402318005745 | New Orleans | LA | US | 61822 | At Risk | Gold | 55-64 | Female | 2023-08-21 06:20 |
| 7402318006946 | Hamilton | ON | CA | E2C 4E2 | Returning | empty | 35-44 | Female | 2022-12-17 18:47 |
| 7402318015663 | San Francisco | CA | US | 47860 | VIP | Bronze | 45-54 | Female | 2025-12-21 06:58 |
Orders
One row per order placed — the money, how it was bought and paid for, and the campaign it is attributed to. It references both customers and campaigns, and the order lines reference it.
| Name | Type | Description |
|---|---|---|
| Order Id | Id | Order number, a ten-digit number (not contiguous), unique per row. Count it to answer "how many orders?". |
| Status | Attribute | Where the order stands: Pending, Processing, Shipped, Delivered, Cancelled or Returned. |
| Channel | Attribute | Where the order was placed — Web, Mobile App, In Store, Call Center, Marketplace or Social Commerce. |
| Payment Method | Attribute | How the order was paid for, from cards through digital wallets to gift cards, store credit and pay-later plans. |
| Currency | Global attribute Currency | ISO 4217 currency the amounts on this row are in — USD or CAD, following the customer's country — shared with the built-in currency reference data. A Sum across both adds up numbers that are not comparable. |
| Subtotal | Measure | Merchandise value of the order, to two decimals: the sum of its order lines, before tax, shipping and any order-level discount. |
| Tax | Measure | Sales tax on the order, to two decimals — between 5 % and 12 % of the subtotal. |
| Shipping | Measure | Delivery charge, to two decimals. Zero once the subtotal reaches 50, which is why the average is not a flat rate. |
| Discount | Measure | Order-level discount, to two decimals. Most orders with no campaign behind them carry none; an attributed order carries 5-15 %, and one from a high-performing campaign 10-30 %. |
| Total | Measure | What the customer paid, to two decimals: subtotal plus tax plus shipping, less the discount. This is the revenue column. |
| Item Count | Measure | How many units the order contains across all its lines. One to twenty; the VIP customers sit at the top of that range. |
| Ordered At | Time | When the order was placed. Covers calendar 2025 and peaks hard in November and December, which is the seasonality this model exists to show. |
| Customer | Reference to Customers | The customer who ordered. Follow it to reach their state, segment and loyalty tier. |
| Campaign | Reference to Campaigns | The campaign the order is attributed to. Empty on most rows, which were not driven by marketing — those land in the missing bucket of any card segmented by a campaign attribute. |
Example records
Five real records, one column per property. An empty cell is a value that is absent — left empty, never filled with a zero or a placeholder.
| Order Id | Status | Channel | Payment Method | Currency | Subtotal | Tax | Shipping | Discount | Total | Item Count | Ordered At | Customer | Campaign |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1000480011 | Delivered | In Store | Debit Card | USD | 1642.72 | 104.64 | 0.00 | 152.39 | 1594.97 | 1 | 2025-12-06 13:24 | 7402318009625 | CMP-2025-0007 |
| 1000480318 | Returned | Call Center | Gift Card | USD | 52193.84 | 5120.49 | 0.00 | 3708.20 | 53606.14 | 10 | 2025-04-11 19:15 | 7402318021498 | CMP-2025-0005 |
| 1000480580 | Processing | Web | Apple Pay | USD | 618.18 | 40.10 | 0.00 | 47.01 | 611.27 | 4 | 2025-03-25 10:17 | 7402318017056 | CMP-2025-0008 |
| 1000480726 | Delivered | Marketplace | Credit Card | CAD | 34.10 | 3.72 | 9.81 | 0.00 | 47.63 | 2 | 2025-02-06 07:15 | 7402318060670 | empty |
| 1000483031 | Cancelled | Mobile App | Buy Now Pay Later | USD | 1483.97 | 150.56 | 0.00 | 213.63 | 1420.90 | 3 | 2025-01-20 12:23 | 7402318075300 | CMP-2025-0004 |
Order Items
The lines of an order — one row per product on it, so this is where the catalogue meets the money. Reaching product, category, brand or supplier from revenue starts here rather than at the order.
| Name | Type | Description |
|---|---|---|
| Order Item Id | Id | Order-line number, an eleven-digit number (not contiguous), unique per row. Count it to answer "how many lines were sold?". |
| Order | Reference to Orders | The order this line belongs to. Follow it to reach the channel, the campaign and the customer. |
| Product | Reference to Products | The product sold on this line. Follow it to reach category, brand and supplier. |
| Quantity | Measure | Units of the product on this line — one to ten. |
| Unit Price | Measure | Price actually charged per unit on this line, to two decimals. It may differ from the product's list price. |
| Discount | Measure | Amount taken off this line, to two decimals — already deducted from the line total. |
| Line Total | Measure | What the line came to, to two decimals: quantity times unit price, less the line discount. The order's subtotal is the sum of these. |
| Ordered At | Time | When the parent order was placed, repeated on the line so a card based here can filter on time without a join. |
Example records
Five real records, one column per property.
| Order Item Id | Order | Product | Quantity | Unit Price | Discount | Line Total | Ordered At |
|---|---|---|---|---|---|---|---|
| 31000000002 | 1000480002 | SKU-10364-Q | 3 | 165.14 | 0.00 | 495.42 | 2025-07-25 08:21 |
| 31000000030 | 1000480031 | SKU-10755-M | 1 | 280.68 | 35.33 | 245.35 | 2025-02-08 05:17 |
| 31000000037 | 1000480038 | SKU-10650-B | 2 | 63.99 | 22.99 | 105.00 | 2025-09-06 07:39 |
| 31000000061 | 1000480044 | SKU-10016-L | 5 | 801.77 | 296.65 | 3712.19 | 2025-04-05 09:05 |
| 31000000076 | 1000480058 | SKU-10904-V | 4 | 527.02 | 154.70 | 1953.39 | 2025-02-12 04:37 |
Inventory
What each warehouse currently holds of each product, and when it will be topped up. One row per product and site; comparing the stock level with the reorder point is how a stockout is found.
| Name | Type | Description |
|---|---|---|
| Inventory Id | Id | Id of the stock record, a UUID, unique per row. Count it to answer "how many product-site positions are there?". |
| Warehouse | Reference to Warehouses | The site holding the stock. Follow it to reach the warehouse's location and floor area. |
| Product | Reference to Products | The product being held. Follow it to reach category, brand and supplier. |
| Stock Level | Measure | Units currently on hand at this site. Below the reorder point means the position needs replenishing. |
| Reorder Point | Measure | Units at which replenishment is triggered. A per-position threshold, not a company-wide one. |
| Restock Quantity | Measure | Units ordered when replenishment is triggered — roughly twice the reorder point plus a buffer. |
| Last Restock At | Time | When this position was last topped up. Inside the same 2025 window as the orders. |
Example records
Five real records, one column per property.
| Inventory Id | Warehouse | Product | Stock Level | Reorder Point | Restock Quantity | Last Restock At |
|---|---|---|---|---|---|---|
| 34662816-2ed1-42f2-9d82-4d03adff3e59 | DC-105 | SKU-10904-V | 2893 | 41 | 596 | 2025-01-08 03:16 |
| acc21575-768b-44c9-b943-62000b558c94 | DC-103 | SKU-10031-M | 1717 | 236 | 1432 | 2025-03-18 18:56 |
| b0f9924f-bfef-4a87-87f8-f166ae582e9b | DC-107 | SKU-11070-T | 359 | 406 | 888 | 2025-11-03 04:38 |
| 7b6470bc-4ef5-4b6b-aa7c-897f4ee91f74 | DC-108 | SKU-11130-A | 2454 | 335 | 1086 | 2025-09-16 06:05 |
| 0e754885-33fd-421f-9fe5-b27814e23fce | DC-104 | SKU-10149-L | 1902 | 247 | 868 | 2025-11-20 18:36 |
Reading the data
References run one way. A card that wants order revenue by campaign is based on orders, not
on campaigns, which cannot see an order at all. Getting that backwards produces a card that
renders and is empty. Reaching a product's category, brand or supplier from revenue starts at
order_items.
What the data is shaped like
- November and December carry about a third of the year's orders. The monthly chart is the first place to see it.
- Three categories climb across the year and three decline. Smart Home, Wearables and Streaming Devices rise from about half their January weight to one and a half times it by December; DVDs and Media, Print Magazines and Desktop Computers do the reverse.
- Price is very unevenly spread. Electronics, Smart Home and Jewelry run from 80 to nearly 2 000; Grocery, Books and Office stay under 30. A handful of luxury brands multiply their own price five to fifteen times on top.
- About one customer in thirty-seven is a VIP — in an order roughly twenty times more often than everyone else, buying two to twelve items at a time.
- One warehouse in seven is always below its reorder point, every product line, all year.
Orders run from 1 January to 31 December 2025.
How the data is prepared
The model follows every rule of Preparing Your Data:
- People are ids. A shopper is a store customer number with an age band, a city and a postal code — no name and no e-mail address.
- Missing values are empty. A customer outside the loyalty programme has an empty tier
(labelled Not a member), and an order that came with no campaign has an empty campaign
(No campaign). An order with free shipping or no discount carries a real
0. - A star of events and things. Orders and order lines are the events; customers, products, campaigns, suppliers and warehouses are referenced, never copied onto the order.
- Codes are published, units are fixed. Countries are ISO codes, and the list prices, costs and budgets are in US dollars, which their unit says.
The dashboards
Revenue Overview
Fulfilled revenue is a per-measure filter — shipped and delivered orders only — sitting beside the unfiltered total, so the gap between what was ordered and what actually shipped is one card rather than two dashboards.
Click a channel slice to filter the page; click a category row to drill into Category Trends.
Category Trends
The Category against Month heat map shows both trends at once, as two diagonals running in opposite directions. The brand scatter puts average price against units sold — the luxury brands separate out on the vertical axis.
Marketing Attribution
Two kinds of campaign stand out: one campaign in eleven wins about five times its share of orders
and discounts 10-30 % to do it; one in thirteen wins almost nothing. Every card is based on
orders, for the reason above.
Orders with no campaign stay in their own bucket rather than being dropped. About 60 % of the book is organic, and hiding it would make every campaign look several times more effective than it is.
US and Canada Sales
States and provinces are weighted by population — California, Texas, Florida, New York and Ontario carry the volume — and every customer's city lies in their own state. The map shades the two countries by revenue; state-level shading would need a join to subdivision shapes, which this model does not have. Click a country or a state to filter the page to it; a city opens a public search for it.
Inventory and Suppliers
Below reorder is a per-measure filter rather than a page filter, so the count of at-risk lines sits directly beside the total number of lines it came out of. On the stock chart the understocked warehouses sit flat along the bottom.
Supplier ratings are skewed high, as they are in reality: most sit at three to five, and about 8 %
at one or two. Every card here is based on inventory, including the supplier ones — a rating
reaches across the join as a measure.
Customers and Loyalty
The top-customer table rolls everything past the top twenty-five into a single exact Other row, so the concentration is readable without hiding the tail. Click a customer to drill into Revenue Overview filtered to them.
Saved filters
Fulfilled orders · Online orders · Electronics products · Top-tier customers · Orders over 100 · Stock under 100 units