Data Modeling

Inventory balance facts are not the same thing as inventory movement events. A movement fact records what changed inventory; a balance fact records how much inventory existed at a reporting cutoff. If those grains are mixed, dashboards can show plausible numbers that cannot be reconciled.

The cutoff problem inventory models must solve

Inventory reporting usually asks two different questions that sound similar but require different fact grains.

  • What happened? A warehouse received 40 units, shipped 25 units, transferred 10 units, or posted an adjustment of negative 3 units.
  • What was true at the cutoff? At 2026-11-30 23:59:59, location A had 112 sellable units of SKU-100 on hand.

The first question is about events. The second is about state. Movement events can explain a balance, but they are not the balance unless you have a complete starting point, complete event history, agreed inclusion rules, and an exact cutoff.

The practical modeling decision is simple: store inventory movements at the movement grain, store inventory balances at the cutoff grain, and reconcile them with explicit rules.

Declare two grains before choosing columns

The safest design starts by declaring two separate fact table grains.

Movement fact grain: one row per inventory-changing event line. If a receipt document has five product lines, it creates five movement fact rows. If a transfer removes stock from one location and adds it to another, it may create two signed movement rows or one modeled transfer event with separate from and to locations, depending on the reporting need.

Balance fact grain: one row per product, location, inventory status, and reporting cutoff. If the business reports by lot, owner, channel, or storage condition, those attributes belong in the declared grain or in dimensions attached to the grain.

These grains should not be compressed into a single table just because both contain quantity. The meaning of the quantity is different.

Question Use a movement fact Use a balance fact
What happened during the period? Yes No
What was on hand at month end? No Yes
How many units were received? Yes No
What was available as of the cutoff? No Yes
Can the measure be summed across dates? Usually yes for signed activity Usually no for snapshot quantities
Does the row represent an event or a state? Event State at cutoff

Design the inventory movement fact for what changed

An inventory movement fact should make operational changes auditable. Typical dimensions and degenerate identifiers include product, location, date, time, movement reason, document number, source system transaction id, inventory status, lot, and unit of measure.

Useful measures are usually additive across the movement grain:

  • movement_qty_signed: positive for inventory increases and negative for decreases.
  • movement_qty_abs: the absolute quantity moved, useful for activity volume.
  • movement_cost_amount: optional when the source reliably provides valuation at the same grain.

The signed quantity is the measure most often used to bridge from one balance to another. A receipt may be +40. A shipment may be -25. A write-off may be -3. Summing signed movements across a period produces a net change, not a closing balance by itself.

Movement facts also need timing clarity. Many systems have an event time, a posting time, and a warehouse processing time. A cutoff report must say which one governs inclusion.

Design the inventory balance fact for what was true at the cutoff

An inventory balance fact is a snapshot. It records a quantity that was true according to a defined process at a defined cutoff.

A common grain is one row per product, location, inventory status, and as-of timestamp. The measures may include on-hand quantity, available quantity, reserved quantity, damaged quantity, quarantine quantity, or inventory value. The exact measures depend on business definitions, not on the table name.

Balance measures are usually semi-additive. You can often sum them across products, locations, and statuses for the same cutoff. You should not sum the same balance across multiple cutoff dates and call it inventory. Ten units on Monday plus ten units on Tuesday is not twenty units of inventory; it is the same stock observed twice unless the grain says otherwise.

For many reporting systems, the balance fact is loaded daily, weekly, monthly, or at close. Some companies also store ad hoc physical count snapshots. The important point is that the cutoff belongs in the fact grain.

Operator rule

A movement quantity is additive across time. A balance quantity is usually not. This single distinction prevents many inventory reporting errors.

A reconciled hypothetical example

Consider a single SKU at one location. The starting balance at the beginning of November is 100 sellable units. During November, the warehouse posts three inventory movements before the cutoff.

The expected closing balance is calculated as:

opening balance + signed movements through cutoff = expected closing balance

In this example, the movement-derived balance is 100 + 40 - 25 - 3 = 112 units. If the inventory balance fact for the November cutoff also reports 112 units, the movement trail and the snapshot agree for this SKU, location, status, and cutoff.

If a receipt of 8 units arrives on December 1, it does not belong in the November cutoff balance even if someone can see it before the report is reviewed. Cutoff logic is what prevents later knowledge from rewriting the period being reported.

Row type Timing Signed movement qty Balance qty Meaning
Opening balance 2026-11-01 00:00 100 Starting sellable on-hand quantity
Receipt 2026-11-05 10:15 +40 Inventory increased before cutoff
Shipment 2026-11-18 14:40 -25 Inventory decreased before cutoff
Adjustment 2026-11-29 09:00 -3 Inventory decreased before cutoff
Closing balance 2026-11-30 23:59 112 Reported sellable on-hand quantity at cutoff
Later receipt 2026-12-01 08:10 +8 Excluded from November cutoff

A practical dimensional schema

A clean dimensional design keeps shared business context in conformed dimensions and keeps each fact table at its own grain.

fact_inventory_movement can contain product_key, location_key, inventory_status_key, movement_date_key, movement_time_key, movement_reason_key, transaction_id, document_number, source_system, movement_qty_signed, movement_qty_abs, and movement_cost_amount.

fact_inventory_balance can contain product_key, location_key, inventory_status_key, as_of_date_key, as_of_time_key, snapshot_type, balance_source, on_hand_qty, available_qty, reserved_qty, and inventory_value_amount.

Shared dimensions might include product, location, calendar date, inventory status, lot, owner, and unit of measure. This keeps reporting consistent while preserving the difference between an event and a snapshot.

The movement fact answers activity questions. The balance fact answers position questions. Reconciliation uses both.

How to reconcile movements to balances

Reconciliation compares a prior balance plus included movements to a later balance at the same dimensional grain.

  1. Choose the comparison grain, such as product, location, and inventory status.
  2. Choose the opening cutoff and closing cutoff.
  3. Read the opening balance from the balance fact.
  4. Sum signed movements after the opening cutoff and through the closing cutoff.
  5. Read the closing balance from the balance fact.
  6. Calculate the variance: closing balance minus opening balance minus included signed movements.

A zero variance means the movement trail and the cutoff snapshot agree for that grain under those rules. A nonzero variance does not automatically mean the warehouse is wrong. It means the model needs to explain the difference.

Common explanations include late-posted movements, different event versus posting time rules, unit conversion issues, excluded inventory statuses, manual physical count adjustments, missing opening balances, or source system corrections.

Practical checkpoint

Reconcile at the same grain you report. A total-company variance can hide product, location, or status errors that cancel each other out.

Measure Formula in the example Result
Opening balance Balance at 2026-11-01 00:00 100
Net movement 40 - 25 - 3 12
Expected closing balance Opening balance + net movement 112
Reported closing balance Balance at 2026-11-30 23:59 112
Reconciliation variance Reported closing - expected closing 0

Choose the fact table based on the business question

Most reporting confusion comes from answering a balance question with a movement fact or answering a movement question with a balance fact.

Use the movement fact when the question contains words like received, shipped, adjusted, transferred, consumed, returned, posted, or changed. Use the balance fact when the question contains words like on hand, available, reserved, at month end, at close, as of, or current stock.

When a dashboard needs both, show both intentionally. For example, a monthly inventory dashboard may show beginning on-hand quantity, receipts, shipments, adjustments, ending on-hand quantity, and reconciliation variance. That is clearer than exposing one inventory number and forcing users to guess whether it is activity or position.

Common failure modes in inventory balance facts

Inventory models usually fail in predictable ways.

  • Summing balances across dates: This creates inflated numbers because snapshots are repeated observations.
  • Using current dimensions for historical balances: Product category, location ownership, or status definitions may change after the cutoff.
  • Ignoring inventory status: On hand, available, damaged, reserved, quarantine, and in transit are not interchangeable.
  • Mixing event time and posting time: A movement can physically occur in one period and be posted in another.
  • Netting away important activity: A +100 receipt and -100 correction net to zero, but operationally they are not the same as no movement.
  • Treating every variance as a data bug: Some variances are valid process outcomes, especially around physical counts, cutoffs, and backdated corrections.

The model should make these cases visible rather than silently smoothing them into a single quantity.

Implementation checklist for practitioners

Before building inventory balance facts, answer these modeling questions in writing.

  • What is the exact grain of the movement fact?
  • What is the exact grain of the balance fact?
  • Which timestamp controls cutoff inclusion?
  • Are balances reported by product, location, lot, owner, inventory status, or unit of measure?
  • Which movement types increase inventory, decrease inventory, or move it between classifications?
  • Are opening balances loaded from the source system, derived from history, or both?
  • Which statuses are included in available quantity versus on-hand quantity?
  • How are late postings, reversals, and corrections represented?
  • What reconciliation variance is expected to be zero, and what variance requires explanation?

The answers become the metric contract for inventory reporting. Without them, the table may still load successfully, but the reported inventory number will remain negotiable.

Key takeaways

  • Inventory movement facts and inventory balance facts answer different questions and should have separate declared grains.
  • Movement facts record inventory-changing events and usually support additive signed quantities over time.
  • Balance facts record state at a reporting cutoff and are usually semi-additive, especially across dates.
  • Reconciliation requires a prior balance, included movements, a later balance, and explicit cutoff rules.
  • Most inventory reporting errors come from unclear timing, status, unit, or grain definitions rather than from the fact table name itself.

Next step

Pick one SKU and one location from an existing inventory report. Write the movement grain, balance grain, cutoff timestamp, included statuses, and reconciliation formula. If you cannot explain the reported ending balance from those rules, fix the model contract before expanding the report.

Recommended next reads