> ## Content Index
> Fetch the complete content index at: https://abundance.alloconomy.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Stocks vs. Flows: Why You Can’t Sum Balances Across Time
- URL: https://abundance.alloconomy.com/alloconomy/the-clock-inside-every-number/
- Published: 2026-11-19T03:50:41.000Z
- Updated: 2026-11-19T03:50:41.000Z
- Description: A practical time map for data engineers: why balances differ from activity, how profit carries into equity, and what that means for facts, snapshots and aggregation.
- Author: Sathya Narayanan
- Tags: Alloconomy, Data Engineering

**A data engineer’s quick reference**

Choose a term to jump to its explanation below.

[Stock](#a-stock-sits-at-a-boundary-a-flow-spans-an-interval)

A position measured at one boundary, such as closing cash.

[Flow](#a-stock-sits-at-a-boundary-a-flow-spans-an-interval)

Activity measured over an interval, such as cash received.

[Additive / semi-additive](#addition-needs-permission-from-the-measure)

Sum across compatible dimensions; balances usually cannot be summed across time.

[Transaction fact](#transaction-facts-what-happened)

One row per defined business event.

[Periodic snapshot](#periodic-snapshots-what-was-the-position)

One row per entity and reporting cutoff or period.

[Accumulating snapshot](#accumulating-snapshots-where-has-the-process-reached)

One row per process instance, updated through milestones.

A company has $100 in cash on Monday morning. It collects $60 and pays $40 during the day. At the end of Monday, it has $120.

Now imagine a dashboard that adds Monday’s $120 balance to Tuesday’s $130 balance and calls the result “cash this week.” The arithmetic works. The meaning has disappeared.

This is the part of accounting I want more data engineers to study: every number carries a relationship with time. Some numbers describe what exists at a boundary. Others describe what happened between two boundaries. A database can store both in the same numeric type and happily let us combine them incorrectly.

For a data engineer, this distinction determines fact-table grain and aggregation rules. It also gives us a completeness test: **can we explain how the opening position became the closing position?**

## A stock sits at a boundary; a flow spans an interval

A balance sheet describes financial position as of a particular point. An income statement reports performance over a period. A cash-flow statement reports cash movements over a period. The [SEC’s guide to financial statements](https://www.sec.gov/about/reports-publications/investorpubsbegfinstmtguide?ref=abundance.alloconomy.com) makes those distinctions accessible without requiring a bookkeeping course.

For our cash example:

**Opening cash + cash received − cash paid = closing cash**

**$100 + $60 − $40 = $120**

The balances are **stocks**. The receipts and payments are **flows**. A flow here is an amount accumulated over an interval; a rate such as dollars per second is another quantity again.

![Opening cash of $100 at t0, flows of $60 received and $40 paid over t0 inclusive to t1 exclusive, then closing cash of $120 at t1.](https://storage.ghost.io/c/f5/a9/f5a9f801-5a10-44d6-b07c-6658660be1a9/content/images/2026/11/stock-flow-reconciliation-3.png)

Illustrative amounts in one currency. The reconciliation works only when the opening position, movements and closing position use the same boundary and population.

Write the interval as **\[t₀, t₁)**: include events at the start and exclude those at the end. Opening state is before events at t₀; closing state includes events strictly before t₁. Adjacent windows then meet without double-counting. Name the timezone too.

There is a real accounting-technology connection here. XBRL, used for digital business reporting, distinguishes **instant** facts from **duration** facts. Its [date conventions](https://www.xbrl.org/dates-in-xbrl/?ref=abundance.alloconomy.com) explain why a December 31 closing balance can be represented at the midnight boundary entering January 1\. The [IFRS taxonomy](https://media.ifrs.org/versioned%5Fiti%5Ffull.html?ref=abundance.alloconomy.com) marks revenue and cash flows as duration facts and end-of-period cash as an instant fact.

## What survives the year-end boundary?

Suppose our fictional company earns $30 of profit during a year. That $30 measures the year’s performance. Next year’s income statement starts measuring a new interval.

The assets, liabilities and equity continue into that next interval. In a conventional closing process, the period’s income and expense account balances are closed, and the profit or loss ultimately feeds retained earnings. Implementation can use closing entries or reporting mechanisms.

A simplified retained-earnings rollforward is:

**Opening retained earnings + profit − dividends ± direct adjustments = closing retained earnings**

That equation needs its labels. Profit is not the entire change in equity. Owner contributions and other equity movements belong in their appropriate components. Foreign-currency translation and other comprehensive income can affect equity without passing through the period’s net profit. And profit is not the change in cash: a credit sale can affect profit before the customer pays. [FASB’s conceptual framework](https://storage.fasb.org/Concepts%5FStatement%5F8-Chapter%5F1%5F%28As%5FAmended%29.pdf?ref=abundance.alloconomy.com) describes why accrual performance and cash receipts or payments can occur in different periods.

The performance window starts again; cash, inventory, obligations and equity carry forward.

## Choose the question, then choose the fact grain

[Kimball’s description of fact tables](https://www.kimballgroup.com/2008/11/fact-tables/?ref=abundance.alloconomy.com) identifies three familiar grains. Each gives us a different way to retain evidence about time.

### Transaction facts: what happened?

A payment fact might contain one row per payment, with an event identifier, customer, amount and effective timestamp. Sum the appropriate payment rows over Monday and you obtain Monday’s receipts.

The grain must say whether a row represents an authorized payment, a settled payment or a reversal. Those events have different meanings even when they share a payment identifier. Replaying them twice without deduplication can turn a valid event stream into an invalid balance.

### Periodic snapshots: what was the position?

A daily customer-receivable snapshot can store one row per customer at each day-end. It makes “how much was outstanding last Friday?” inexpensive to answer.

A periodic snapshot may also contain that day’s sales or collections. Its row is defined by a reporting period, but its individual measures still have different semantics. “Closing receivable” is a position; “collections during the day” is activity. Putting them in the same row does not give them the same aggregation rules.

### Accumulating snapshots: where has the process reached?

An order pipeline might use one row per order, updated as the order is placed, shipped and delivered. The row accumulates milestone dates and durations. It is convenient for answering “which orders are still waiting to ship?”

A single current row will not, by itself, preserve every earlier version of that pipeline. Kimball’s [time-stamped accumulating-snapshot design](https://www.kimballgroup.com/2012/05/design-tip-145-time-stamping-accumulating-snapshot-fact-tables/?ref=abundance.alloconomy.com) discusses preserving state-change events and historical snapshots for those additional questions.

![Three fact grains: one row per business event, one row per entity per reporting cutoff, and one row per process instance accumulating milestones.](https://storage.ghost.io/c/f5/a9/f5a9f801-5a10-44d6-b07c-6658660be1a9/content/images/2026/11/three-fact-grains-3.png)

Each grain answers a different question. A snapshot table can contain both stock and flow measures, so aggregation semantics still belong to each measure.

## Addition needs permission from the measure

Receipts for disjoint days can be added into a weekly receipt total, assuming a consistent currency, scope and treatment of corrections. Daily closing cash balances cannot be added into weekly cash.

This is the idea behind **semi-additive facts**. [Kimball Group](https://www.kimballgroup.com/data-warehouse-business-intelligence-resources/kimball-techniques/dimensional-modeling-techniques/additive-semi-additive-non-additive-fact/?ref=abundance.alloconomy.com) uses balances as a common example: they can often be aggregated across appropriate dimensions, but not across time.

Even “across customers” needs care. The populations must not overlap, units must be compatible, and consolidation may require eliminating internal balances. An average balance requires a defined weighting rule. A margin percentage requires its revenue and profit components; adding percentages rarely answers the intended question.

## The check I would put in every design review

Choose one balance. Name its grain, currency, scope, timezone and cutoff. Reconcile opening position plus movements to closing position. Then ask which dimensions each measure may be summed across.

Those few decisions make the difference between a table of numbers and a model whose answers retain their meaning. Put them in the metric contract before someone writes `SUM(amount)`.

For the related choice of historical versus current classifications, see [Which Version of the Past?](https://abundance.alloconomy.com/alloconomy/which-version-of-the-past/).