# Editing Cohorts in an Overlay

:::note[Rolling out by workspace]
Cohort editing as described here is being turned on workspace by workspace. If your input tables on cohorted measures don't grey out cells or show "Applied" results after a run, it isn't on for your workspace yet.
:::

A cohorted measure is loaded from a file with a cohort date and a report date. For example, accounts opened in January 2025 form the January 2025 cohort, and that cohort reports a balance every month after it opens. An overlay can change such a measure cohort by cohort.

## Building a cohort table

Add an input table to the overlay and select only cohorted targets. The **Cohort** axis is then offered in the table's Rows. It always sits at the innermost row level, so each dimension group shows its own cohorts.

**Cohort birth dates** in the table's settings picks which cohorts the table edits, by the date they opened. For example, 2025-01-01 to 2025-06-30 gives one row per cohort from January to June 2025.

A cohort table with a Time axis on cohorted measures or on a rate also ends with a **Deep back book** row, for the business past maturity that isn't kept per cohort. See [Editing the Back Book](/overlays/back-book), which also covers [rates by cohort and by month](/overlays/back-book#rates-by-cohort-and-by-month).

If you change the table's targets to include a measure that isn't cohorted, the Cohort axis and the cohort birth dates are removed, because that measure has no cohorts to edit. The table asks you to confirm first, since the values typed against cohorts are removed with the axis.

## Two kinds of table

What a value means depends on whether the table has a **Time** axis.

### With a Time axis: one cohort in one month

Each cell is one cohort's value in one report month. Put the Time axis on the columns, or on the rows above the Cohort axis. It can sit under another level, for example Region then Month on the columns.

Example: an Override of 50 in the cell for the January 2025 cohort, Region US and March 2026 sets that cohort's US value in March 2026 to 50. No other month changes.

### Without a Time axis: a cohort's whole lifetime

Each row is a cohort's **lifetime total**: everything it has reported and will report until it matures. The value you type is the total you want, and Galdera changes only the months the cohort still has to come to reach it. Months already in the actuals never change.

Example: the January 2025 cohort has a lifetime of 1,000, and 600 of it is already in the actuals. An Override of 1,100 adds 100 to the 400 still to come, so each remaining month grows by 25%.

* **Override** sets the lifetime total.
* **Offset** adds to it: +100 gives 1,100 in the example.
* **Scale** moves it by a percentage: +10% gives 1,100 in the example. A percentage moves each cohort and each segment in the row by that percentage.

When a row covers several cohorts or segments, the **Distribute** switch in the table's settings decides how an Override or Offset applies. Say a US row covers iOS, with a lifetime of 600 and 300 already in the actuals, and Android, with 400 and nothing in the actuals:

* **On** (the default): the value applies once, to the row's total, and the change is split by what each cohort and segment still has to come. An Override of 1,100 makes US 1,100: iOS 642.86 and Android 457.14. An Offset of 100 adds 100 to US, which gives the same result here.
* **Off**: the value applies to every cohort and segment. An Override of 1,100 sets iOS and Android to 1,100 each, so US is 2,200. An Offset of 100 adds 100 to each: iOS 700 and Android 500, so US is 1,200.

Distribute doesn't apply to Scale, which moves each cohort and segment by its percentage, or to rates, which are set per cohort and period and never split. On a table of rates only, or on Scale, the switch is greyed out and off; on a table with measures and rates, it applies to the measures.

The overlay's dates decide which months can change. With no end date and a start at the forecast start, every remaining month changes and the lifetime lands on the value you typed. With a later start or an end date, only the months inside those dates change, and the run says how much of the lifetime they could reach.

**Carry Forward** isn't available on a lifetime table: there is no month for a value to start from.

## Greyed-out cells

The table greys out cells that an edit can never change. Hover over one to see why.

* **Actuals.** The month is already in the actuals, and an overlay never changes actuals.
* **Past maturity.** From that month on, the cohort's values are no longer kept per cohort, so they can't be edited cohort by cohort.
* **Before this cohort starts.** The month is before the cohort opened, so it has no value. These cells are shaded and empty.
* **Lifetime of a matured cohort.** On a table without a Time axis, a cohort that had matured before the forecast start has nothing left to change.

## What a run tells you

After you press **Play**, each table lists what the run did with its edits, and the rows the results are about carry a small marker.

* **Applied** states what an edit did, for example "lifetime now 1,105: 1,100 asked, +5 from other edits in this overlay". It's information, not a problem.
* **Warning** means an edit found nothing to change, for example a cohort that has already matured. The run still completes.
* **Refused** means an edit is impossible as asked. The run fails and publishes nothing, so fix the edit and run again.

### Edits that clash

Some combinations ask for two different results on the same cohort:

* two lifetime edits on the same cohort, such as a March 2025 row and a Q1 2025 row that both include the March 2025 cohort;
* a lifetime edit on a cohort, and values for that cohort's months in a cohort table with a Time axis;
* a lifetime edit on a cohort, and an Override in a table without a Cohort axis on a month the cohort reports in.

When the overlay alone shows that a pair clashes, **Play** is greyed out. Hover over it to see both tables and rows, then change or remove one of them. For example, an Override on every month a lifetime-edited cohort still reports in always clashes.

When the clash depends on the data, Play stays available: the run checks the data, and refuses the pair by name if they clash. That happens, for example, when the two tables filter on different dimensions, or when an Override covers only some of the cohort's months, since the cohort may have no value in those months.

A Scale or Offset in a table without a Cohort axis adds to a lifetime edit instead. For example, a lifetime of 1,100 plus an Offset that adds 5 to the cohort's months gives "lifetime now 1,105".
