Create a new field to the OrderDetails table: ApplyMap (‘UnitCost_Map’, ProductID, 0) * Quantity as COGS