Skip to main content
inventory_quantity_available is the recommended field for most inventory analyses. Negative values indicate oversold or backordered positions and are preserved as-is from the source.
Amazon rows always have is_inventory_quantity_trusted = FALSE. Never sum Amazon quantities for total inventory reports. Use is_inventory_default_total_eligible = TRUE as a conservative starting filter for any inventory totals.

When to use this table

Use obt_inventory_positions when you need current inventory by product, variant, SKU, location, source system, or fulfillment method. It is a current-state table, not an inventory movement ledger. Common questions this table can answer:
  • Which products are out of stock or oversold?
  • How many units are available across trusted physical locations?
  • Which SKUs exist in Shopify versus Amazon inventory sources?
  • Which rows could not be matched back to SourceMedium product or variant records?
For most inventory totals, start with:
This filter keeps rows that are attributed to the store, quantity-trusted, physical, product-matched, and have a non-null available quantity. It excludes Amazon rows by design.

Common joins

  • Join to dim_product_variants on sm_product_variant_key for product-variant attributes.
  • Join to obt_order_lines on sm_product_variant_key when comparing current inventory to recent product sales.
For ready-to-run templates, see the Products SQL Query Library.