# Metrics vs. Measures

A **measure** is a value that comes directly from your data, and a **metric** is a value Galdera calculates from a formula over measures and other metrics. Knowing which is which tells you where to apply an overlay and what recalculates as a result.

| | Measure | Metric |
| --- | --- | --- |
| What it is | A raw value loaded from a source | A value calculated by a formula |
| Examples | Revenue, Units Sold, Headcount | Gross Profit (Revenue minus COGS), Revenue per Employee (Revenue divided by Headcount), Net Revenue Retention |
| Where it comes from | Importing data from your [sources](/sources/what-is-source) | The formula builder on the [Targets](/targets/what-are-targets) page |
| When it changes | When new data arrives or an overlay adjusts it | Automatically, whenever an input changes |

## Why the distinction matters for forecasting

* Overlays usually target measures, changing the raw inputs to your model.
* Metrics recalculate automatically from any upstream change, so an overlay on a measure flows through to every metric built on it.

## Flows and stocks

Every measure is one of two types, set with the **Type** toggle on its card on the [Targets](/targets/what-are-targets) page:

| Type | What it represents | Examples | Quarters and years show |
| --- | --- | --- | --- |
| **Flow** (default) | An amount *per period* | Revenue, Capex, Costs | The **sum** of their months |
| **Stock** | A *balance at a point in time* | Cash, PP\&E, Inventory, Debt | The **period-end value** |

Summing a balance across months is meaningless, which is why a stock shows its period-end value instead: Q1 cash is the March balance, not January + February + March.

The type matters everywhere values roll up in time, and it is what lets balance-sheet lines display and forecast correctly. For a worked setup, see [Modeling the Three Statements](/forecasting/three-statement-modelling).

Dimension breakdowns always sum, whatever the type: a total balance is the sum of its slice balances.

### Stocks loaded by cohort

A stock loaded with a cohort date, such as open accounts by the month they were opened, splits by **Cohort date**, **Book** and **Age** like any cohorted measure. Each cohort shows its balance at the end of the period, and the cohorts add up to the total balance.

With **Age** on the rows or columns, set **Scale** to **% of starting value** in the view's format settings to show each cohort's balance as a share of its balance at age 0. A cohort that opened 1,000 accounts and still has 810 open at age 12 reads 81% there. A cohort first seen after age 0, such as one opened before your data starts, has no starting value, so its cells stay blank.

A stock without a cohort date, such as cash, is not split by Cohort date, Book or Age, and the view says so.
