Food Chain

Ten datasets in a single line, from the cooperative a farm belongs to, to the sale at the till. Open this model to see what deep cross-dataset analysis looks like.

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.

Cooperatives

The grower cooperatives member farms belong to — the top of the supply chain and the far end of every traceability question. One row per cooperative; reaching it from a sale is a nine-hop join.

Name Type Description
Coop Id Id Global Location Number (GLN) of the cooperative, thirteen digits ending in a check digit. Its display name is the cooperative's name.
Region Attribute Growing region the cooperative covers, for example Pacific Northwest or Central Valley. Seen from a sale or a harvest that reaches no cooperative — an independent farm, an untracked import, a direct sale — it reads No cooperative.
Country Global attribute Country ISO 3166-1 alpha-2 country of the cooperative, shared with the built-in country reference data.
Certification Attribute Scheme the cooperative is certified under: Organic, Fair Trade, Rainforest Alliance or Conventional. No cooperative for a row that reaches none.
Annual Capacity Tons Measure How much the cooperative can take in a year, in tonnes. A stated capacity, not what was actually harvested.

Example records

Five real records, one column per property.

Coop Id Region Country Certification Annual Capacity Tons
8594001000029 (Meadowbrook Cooperative) Gulf Coast AU Conventional 945
8594001000067 (Riverbend Growers) Northeast MX Fair Trade 76708
8594001000104 (Highland Orchards Co-op) Great Lakes NZ Organic 47738
8594001000227 (Riverbend Growers) Pacific Northwest PL Fair Trade 23355
8594001000449 (Northfield Growers) Midwest US Rainforest Alliance 76446

Farms

The farms that grow the produce, most of them members of a cooperative. One row per farm; the fields it plants reference it.

Name Type Description
Farm Id Id Global Location Number (GLN) of the farm, thirteen digits ending in a check digit. Its display name is the farm's name.
Coop Reference to Cooperatives The cooperative the farm belongs to. Empty on about 4 % of farms, which are independent — those rows land in the No cooperative group of any card segmented by a cooperative attribute, and that gap is the point rather than an oversight.
Farm Type Attribute What the farm produces: Orchard, Dairy, Grain, Vegetable, Vineyard or Mixed.
Organic Attribute Organic when the farm is certified organic, which is about 30 % of them; Conventional otherwise.
Country Global attribute Country ISO 3166-1 alpha-2 country of the farm, shared with the built-in country reference data.
Hectares Measure Total farmed area, in hectares to one decimal. The fields it plants each carry their own area.

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.

Farm Id Coop Farm Type Organic Country Hectares
8594111000025 (Rolling Ridge Farm) 8594001000579 Mixed Conventional NZ 755.1
8594111000179 (Alder Vale Farm) 8594001000142 Orchard Conventional ES 1424.4
8594111000308 (Quiet Orchard Farm) 8594001000449 Vineyard Conventional BR 1454.9
8594111000483 (Quiet Brook Farm) 8594001001187 Grain Organic MX 1460.0
8594111004184 (Quiet Meadow Farm) empty Vegetable Conventional CA 484.4

Fields

The individual planted fields of a farm, each growing one crop. One row per field; this is where a product line's crop ultimately comes from, so it is the level a traceability question resolves at.

Name Type Description
Field Id Id Land-parcel code of the field, FLD- and six digits, unique per row. Count it to answer "how many fields?".
Farm Reference to Farms The farm the field belongs to. Follow it to reach the farm's cooperative, country and organic status.
Crop Type Attribute What is grown on the field, for example Wheat, Apples or Tomatoes. It propagates all the way down to the packaged product line. Untraced for a sale or lot that reaches no field — an untracked import or a direct sale.
Soil Type Attribute Soil the field is on: Loam, Clay, Sandy, Silt, Peat or Chalky.
Irrigation Attribute How the field is watered: Drip, Sprinkler or Rainfed.
Area Hectares Measure Area of this field, in hectares to one decimal. Divide a harvest's yield by it for yield per hectare.

Example records

Five real records, one column per property.

Field Id Farm Crop Type Soil Type Irrigation Area Hectares
FLD-010002 8594111006690 Rice Silt Rainfed 115.7
FLD-010004 8594111002425 Lettuce Clay Drip 79.4
FLD-010006 8594111008670 Tomatoes Sandy Drip 26.3
FLD-010010 8594111000186 Almonds Chalky Sprinkler 80.7
FLD-010022 8594111008809 Strawberries Loam Drip 51.6

Harvests

What came off a field and when, with the quality it graded at. One row per harvest event; heavily seasonal, clustering in June to October.

Name Type Description
Harvest Id Id Id of the harvest record in the farm-management app, a UUID, unique per row. Count it to answer "how many harvests?".
Field Reference to Fields The field harvested. Follow it to reach the crop, the farm and the cooperative.
Harvested At Time When the harvest took place. Covers 2024-2025 and clusters in June to October, so a month segmentation shows a real season.
Yield Kg Measure How much was harvested, in kilograms. Everything further down the chain is a fraction of this.
Quality Grade Attribute Grade the harvest was given: Premium, Standard, Substandard or Rejected. It follows the moisture on the same row — drier grades higher.
Moisture Pct Measure Moisture of the harvested crop, already expressed as 5-40 rather than as a fraction. Format it as a plain decimal with a per-cent sign rather than as a percentage, or it renders a hundred times too large.

Example records

Five real records, one column per property.

Harvest Id Field Harvested At Yield Kg Quality Grade Moisture Pct
51136c26-ffb0-4585-923f-a07d8df940b8 FLD-011957 2025-10-21 01:14 14905 Substandard 24.0
f002c837-832d-4043-bbee-9aefa7fb7d57 FLD-010440 2024-06-30 01:41 20388 Substandard 27.9
f0675d7f-43c7-418d-856d-2495c5603703 FLD-010867 2025-09-26 23:30 30921 Rejected 35.7
5bf329e2-6400-4e20-9a0d-13ad5d0dc3ea FLD-010464 2024-05-30 12:02 44937 Premium 9.3
258aebed-d75b-4f6a-ae6a-e85d862bd16e FLD-012328 2024-09-05 11:07 7459 Standard 19.3

Lots

Processing lots — raw crop turned into something that can be packed, at a named plant. One row per lot; the point in the chain where imported produce enters without a harvest behind it.

Name Type Description
Lot Id Id Processing lot code, LOT- and seven digits, unique per row. Count it to answer "how many lots were processed?".
Harvest Reference to Harvests The harvest the lot was made from. Empty on about 5 % of lots — untracked imports entering at the plant — and those rows cannot be traced back to a field at all.
Processed At Time When the lot was processed, typically one to ten days after its harvest.
Method Attribute How the crop was processed: Washed, Frozen, Dried or Fresh-Cut.
Plant Attribute Processing facility the lot was run at.
Output Kg Measure Usable output of the lot, in kilograms — what went on to be packed, after waste.
Waste Pct Measure Share of the input lost in processing, already expressed as 0-25 rather than as a fraction. Format it as a plain decimal with a per-cent sign rather than as a percentage, or it renders a hundred times too large.

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.

Lot Id Harvest Processed At Method Plant Output Kg Waste Pct
LOT-0400002 9a146e9f-fa65-4b78-acad-550864360466 2024-10-04 06:22 Frozen Coastal Processing Plant 18930 5.7
LOT-0400004 122280a8-b7c1-4e5f-bb76-7307388b2708 2024-07-28 18:18 Frozen Central Mill 18837 15.4
LOT-0400014 71405762-4906-48c6-af0f-39bd257c8f9b 2025-07-01 13:44 Washed Central Packhouse 33021 15.9
LOT-0400025 empty 2025-01-10 15:55 Dried North Processing Plant 3278 5.3
LOT-0400057 8847f1e6-9ed7-4f41-94ee-8b979bdb4f9e 2025-09-24 12:21 Fresh-Cut East Mill 20877 1.3

Batches

Packaged batches — a processing lot turned into sellable units of a named product line. One row per batch; this is the first level that talks about a product rather than about a crop.

Name Type Description
Batch Id Id Batch number printed on the pack, a ten-digit number (not contiguous), unique per row. Count it to answer "how many batches were packed?".
Lot Reference to Lots The lot the batch was packed from. Follow it to reach the plant, the harvest and, through it, the field.
Packaged At Time When the batch was packed, typically one to fourteen days after its lot was processed.
Packaging Attribute How the units are packed: Box, Bag, Crate, Jar or Vacuum.
Product Line Attribute The product the batch is sold as — the crop grown on the originating field combined with a preparation, so around 150 values. It lines up with the field's crop rather than being drawn independently. Direct sale for a sale with no delivery, which reaches no batch.
Units Produced Measure Sellable units the batch yielded. Multiply by the unit weight for the packed mass.
Unit Weight Grams Measure Weight of one packed unit, in grams.

Example records

Five real records, one column per property.

Batch Id Lot Packaged At Packaging Product Line Units Produced Unit Weight Grams
2024000002 LOT-0402812 2025-05-21 03:56 Bag Strawberries Organic Pack 7904 343
2024000004 LOT-0406965 2025-09-15 15:19 Vacuum Corn Value Pack 4637 3439
2024000006 LOT-0406004 2025-10-04 08:16 Box Rice Single Serve 8509 187
2024000017 LOT-0412078 2024-06-11 19:08 Crate Soybeans Family Pack 7076 1913
2024000018 LOT-0413336 2025-07-22 08:55 Jar Almonds Dried 3842 1982

Shipments

Outbound freight — a packed batch leaving the plant with a carrier, for a destination country. One row per shipment, and the first level that carries a cost of its own.

Name Type Description
Shipment Id Id Serial Shipping Container Code (SSCC) of the pallet, eighteen digits ending in a check digit, unique per row. Count it to answer "how many shipments?".
Batch Reference to Batches The batch being shipped. Follow it to reach the product line, the lot and the rest of the chain above.
Shipped At Time When the freight left, typically within a week of the batch being packed.
Carrier Attribute Haulier moving the freight.
Destination Country Global attribute Country ISO 3166-1 alpha-2 country the freight is going to, shared with the built-in country reference data.
Weight Kg Measure Gross weight of the shipment, in kilograms.
Freight Cost Measure What the shipment cost to move, in euros, to two decimals. Divide by the weight for a cost per kilogram.

Example records

Five real records, one column per property.

Shipment Id Batch Shipped At Carrier Destination Country Weight Kg Freight Cost
085940010000000029 2024013484 2025-05-25 17:15 Meridian Freight DE 7450 2123.85
085940010000000043 2024004852 2025-09-15 03:09 Keystone Haulers SE 2562 914.13
085940010000000067 2024008213 2024-08-25 03:37 Cascade Freightways CA 24800 17198.01
085940010000000104 2024019598 2024-10-03 23:10 Ironwheel Transport FR 17409 7562.19
085940010000000173 2024021420 2025-10-05 10:18 Crossroads Shipping IT 22581 11946.65

Distributions

A distributor splitting a shipment into cases for a sales channel. One row per allocation; the fan-out here is deliberately skewed, with roughly a fifth of distributions taking four fifths of the deliveries.

Name Type Description
Distribution Id Id Allocation number, a ten-digit number (not contiguous), unique per row. Count it to answer "how many allocations?".
Shipment Reference to Shipments The shipment being allocated. Follow it to reach the carrier, the batch and the rest of the chain above.
Allocated At Time When the allocation was made, within a few days of the shipment leaving.
Distributor Attribute Distribution business handling the allocation. Direct sale for a sale that never passed through one.
Channel Attribute Where the goods are headed: Supermarket, Restaurant, Online or Wholesale. Direct sale for a sale that never passed through a distribution.
Cases Allocated Measure Cases the distributor took from the shipment.

Example records

Five real records, one column per property.

Distribution Id Shipment Allocated At Distributor Channel Cases Allocated
6100000000 085940010000061525 2025-09-05 15:48 Lumina Wholesale Produce Restaurant 1457
6100000005 085940010000245239 2025-12-07 00:48 NexGen Distribution Supermarket 1927
6100000013 085940010000177295 2025-10-20 17:09 Redwood Distribution Restaurant 1075
6100000027 085940010000162550 2024-10-14 17:24 Apex Distribution Online 969
6100000037 085940010000229918 2024-10-25 08:30 TrueNorth Foods Wholesale 1749

Deliveries

Cases arriving at a store, on time or not. One row per delivery, and the last level before the till — a sale references one of these when it can be traced at all.

Name Type Description
Delivery Id Id Delivery id the carrier's app assigns, a UUID, unique per row. Count it to answer "how many deliveries?".
Distribution Reference to Distributions The allocation this delivery came out of. Follow it to reach the distributor, the channel and the rest of the chain above.
Delivered At Time When the delivery arrived, up to a month after its allocation.
Store Chain Attribute Retail chain the goods were delivered to. Direct sale for a sale with no delivery.
City Attribute City the store is in.
On Time Attribute On Time when the delivery met its slot, which is about 88 % of them; Late otherwise. Take the share of On Time as the service level.
Cases Delivered Measure Cases actually delivered to the store.
Delivery Cost Measure Last-mile cost of the delivery, in euros, to two decimals. Divide by the cases for a cost per case.

Example records

Five real records, one column per property.

Delivery Id Distribution Delivered At Store Chain City On Time Cases Delivered Delivery Cost
417ca3e5-d277-47a2-b5b3-0fb260555caf 6100034823 2024-11-03 04:01 Homestead Pantry Barcelona On Time 402 84.43
d430caea-8cae-4517-a7e1-c47173463ff4 6100028346 2024-10-06 02:11 BrightCart Detroit On Time 336 1348.42
1dbe1a53-e10f-481a-9dac-3e4fadc6e9f4 6100028821 2024-09-06 13:08 Countryside Market Shanghai On Time 277 363.12
157a88ba-24f9-46cc-bf1c-49e553572264 6100011181 2025-10-26 17:28 The Produce Yard Minneapolis On Time 329 554.27
069b9992-66bb-4f82-b9a7-c98eebac970d 6100056198 2025-08-16 16:42 Harborview Market Miami Late 358 956.55

Sales

What was sold at the till — one row per transaction, where most questions start. Revenue by cooperative region is a nine-hop join from here, which is exactly what this model exists to make visible.

Name Type Description
Sale Id Id Point-of-sale transaction number, a twelve-digit number (not contiguous), unique per row. Count it to answer "how many transactions?".
Delivery Reference to Deliveries The delivery the goods came in on. Empty on about 8 % of sales — farm-stand and direct sales that never went through distribution — and those cannot be traced back up the chain at all. Do not hide that bucket on a traceability card: it is the number a food-safety team needs.
Sold At Time When the sale was rung up. Covers 2024-2025, which is the window every food-chain dashboard filters to.
Units Measure Units sold in this transaction — one to fifty.
Revenue Measure Value of the transaction, to two decimals in the row's own currency: units times a unit price of roughly 0.80 to 9.90, less any promotion.
Payment Method Attribute How it was paid for: Card, Cash, Mobile, Voucher or Invoice.
Promo Applied Attribute Promotion when a promotion was applied, which is about 18 % of sales and takes 10-25 % off the revenue on those rows; Full Price otherwise.
Currency Global attribute Currency ISO 4217 currency the revenue on this row is in — USD, EUR, GBP or CAD — shared with the built-in currency reference data. A Sum across all four adds up numbers that are not comparable.

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.

Sale Id Delivery Sold At Units Revenue Payment Method Promo Applied Currency
880000000002 20fe5e4c-bf78-4696-a2e9-4cbadddc2dfa 2024-11-25 13:12 25 121.57 Mobile Promotion CAD
880000000010 de89134f-959d-4d85-a2c3-95d041b17395 2024-08-29 00:38 30 231.50 Cash Full Price GBP
880000000044 1af4f8ce-dbdb-4d1d-a534-14119f23158f 2024-10-03 01:43 44 330.00 Card Full Price USD
880000000048 e7abaa5e-95b5-4485-b714-3a464697ca22 2025-06-13 20:01 42 356.18 Voucher Full Price EUR
880000000254 empty 2025-05-09 22:54 34 247.64 Invoice Full Price EUR

Group by anything in the chain

Every reference points one step up the chain, so a card based on sales can reach all ten datasets, and the number of hops is the distance along the chain.

Revenue by cooperative region on a card based on sales crosses nine references, and you never write a join — you name the property. Segmenting reaches any depth for an attribute; a measure from further up the chain (freight cost, yield) is added as a measure instead.

Filters reach just as far. A filter on any dataset in the chain — a crop, a farm type, a cooperative region — narrows every card based on sales, nine hops away, the same way a filter on the sale itself does.

Three references are optional, and the gaps are data, not oversight:

Reference Present What a gap means
farms → cooperatives 96 % an independent farm, in no cooperative
lots → harvests 95 % an untracked import that entered at the processing plant
sales → deliveries 92 % a farm-stand or direct sale that never went through distribution

A sale with no delivery cannot be traced back to a farm at all, so it lands in its own bucket of every card grouped by anything further up the chain: Direct sale by store chain, channel or product line, Untraced by crop and No cooperative by cooperative region, where independent farms and untracked imports join it. That bucket is the number a food-safety team needs — the share of sales a recall could not reach — which is why these dashboards leave it visible.

How the data is prepared

The model follows every rule of Preparing Your Data:

  • Missing links are empty. Each optional reference above is an empty cell, never a placeholder record, and each has an Empty Value Label — Independent farm, Untracked import, Direct sale — so the gap is named on every card grouped by it.
  • A chain where the business is a chain. Each dataset references only the step before it, ten steps from a sale back to a cooperative; nothing is flattened to make a chart work.
  • Codes and units. Cooperatives, farms and shipments carry GS1 identifiers, and the shares that are already 0-100 — moisture, waste — say so in their descriptions.

The dashboards

Farm to Fork

Every card is based on sales, and each reaches a different distance up the chain: revenue by store chain is one hop, by channel two, by product line four, by crop seven, by cooperative region nine. The Whole Chain in One Table groups by three of them at once.

Quality and Waste

Grade follows moisture — drier harvests grade higher — and the Moisture against Yield by Grade scatter is where the grades separate into bands. Harvest clusters into June to October, and the processing and packaging that follow lag it by days to weeks. Waste is measured at processing, so the waste cards are based on lots.

Logistics and Delivery

onTime is an On Time / Late attribute rather than a duration, so the on-time rate is a computed measure over two counts. Every card is based on deliveries, including the freight ones: freight is booked on the shipment two hops up the chain and reaches across the join as a measure, the carrier as a segment, and a filter on either narrows these cards just the same. Destination countries are real country codes — click one to open its encyclopedia article.

Saved filters

Premium grade harvests · Organic farms · Late deliveries · Supermarket channel · Promotional sales · Certified cooperatives

See also

← StreamingContact Centre →