Agree a schema and row key
Start an aggregated history with sku, date, quantity, unit: product identifier, period date, quantity and unit of measure. Add location for warehouse-level forecasts. Define a key, such as one row per SKU, location and day. It should be unique after aggregation.
Keep document and line identifiers in raw transactions for duplicate checks. Separate legitimate sales may share a product and date. Preserve leading zeros in SKU identifiers by treating them as text.
Align dates, granularity and units
Choose the business event represented by the date, such as order placement or shipment. Do not mix it with invoice dates. Specify time zone, week boundaries and handling of the unfinished current period. Daily history supports later aggregation; monthly totals cannot reconstruct daily timing.
Do not add cartons to individual units without a verified conversion. Document decimal separators and date formats. When packaging changes, check that historical quantities remain comparable.
Separate returns and stockout evidence
Supply returns as a separate returns_quantity with an agreed sign and date, or document how net sales are calculated. Do not subtract returns twice. Investigate negative quantities rather than deleting them automatically.
Stockouts require historical availability indicators or a separate table of unavailable periods. Today's stock snapshot cannot establish availability last month. A missing row is not zero demand until data completeness has been checked.
Validate before forecasting
Begin with an agreed SKU sample and completed periods. Record the extraction date and transformation rules. For a historical test, check which information was actually available at each forecast origin.
- Compare row counts, date range and SKU coverage with expectations.
- Find duplicate keys, missing units and invalid dates.
- Reconcile quantities with an ERP control report using identical conventions.
- Inspect several transactions manually and explain major spikes.
- Distinguish confirmed zeros, missing records, stockouts and incomplete periods.
Hand over context with the file
Include a field dictionary and expected validation totals. Inventory planning also needs dated stock and open purchase orders; keep these distinct from sales quantities.
Next, agree candidate forecasting methods and evaluation rules. Discuss the sample in an AMP demo; connection design is scoped through AMP services.
Frequently asked questions
Is there a ready connector for every ERP?+
This guide gives no such guarantee. Formats, fields and transfer options must be checked for the specific system.
Should all missing rows become zeros?+
No. First distinguish confirmed no-sale periods from extraction failures, stockouts and products outside the assortment.
Does a sales forecast always require stock data?+
Not always. Stock adds availability context; replenishment decisions require separate inventory and receipt information.