1. Pull SKU cost. Standard cost or actual cost per SKU from the ERP. Plus the open PO cost for products coming in.
2. Allocate freight and duty. From freight invoice data, allocate freight cost to each SKU on the shipment. Same for customs duty.
3. Join to sales. Pull sales by SKU by channel by day. Apply the right cost basis per period.
4. Calculate margin. Gross margin per SKU per channel. Bucket by category, by brand, by region.
5. Compare to plan. Variance against the forecast COGS and the planned margin.
6. Output the margin view. SKU-level margin report, channel roll-up, variance vs plan, the gross margin trend.