# Editing a Cohort Curve

:::note[Beta: cohort-aware overlays]
Curve tables are available in workspaces with cohort-aware overlays enabled. A saved curve table cannot play while the feature is switched off.
:::

## Add a Curve preset

Use `/input` to add an input table. Open its settings and choose one or more cohorted measures in **Targets**. **Preset → Curve** becomes available when every target is a cohorted measure. Choose it, then select one scenario in **Scenarios**. The curve keeps the targets that share the first one's ages (see below); a notice names any it leaves out, so you can give them a curve table of their own. Rates, reporting measures and subtotals have no cohort lifetime of their own to reshape, so they do not offer the Curve preset.

Choosing Curve also sets the table's **Cohort birth dates**, unless it already has them: from the start of the targets' first cohort period in the overlay to the end of the forecast. On a monthly target, an overlay starting 15 March gives a range from 1 March, so the March cohort is included; a quarterly or yearly target starts at its quarter or year, and a daily or weekly target keeps the overlay's start date. When the overlay starts before the forecast does, or has no start date, the range starts at the forecast start, so it picks the cohorts that haven't started yet; the start never moves before the forecast start. The dates are those of the version's locked baseline. They show in the table's settings under **Cohort birth dates**, where you can change them, for example to an earlier start to reach cohorts that have already started.

On a table without Cohort birth dates, Curve is unavailable until the locked baseline's dates load. It stays unavailable when the version has no locked baseline, or when the overlay starts after the forecast ends. Set the Cohort birth dates yourself first; on a table filtered by Book, remove Book before setting them.

The overlay's **Applies to** and the table's **Filters** select segments together: a table's filters narrow the overlay's selection. The birth range selects cohorts by when they started. The overlay's date window does not limit a curve table; the run changes the selected cohorts wherever their remaining cells land within the forecast.

## Reshape several targets with one curve

One curve table can reshape several cohorted measures at once, such as active accounts, transaction count and amount, so a whole activity chain keeps one shape. The targets must share their ages: the same lifetime length at the same grain, for example monthly with 12 ages. In **Targets**, a measure whose ages differ from the chosen ones is greyed out; hover it to see both lifetimes. A table that already mixes ages names each target's lifetime below **Targets**, and Play stays unavailable until you remove the odd one or give it a curve table of its own.

Each target lands the same typed shares. Empty rows rescale each target's own baseline shares, so every target keeps its own lifetime. A curve on active accounts doesn't reshape the measures that keep their own lifetime, such as transaction count and amount; add them as targets to give them the same shape. A lifetime edit on active accounts then moves their totals too, and each keeps the curve's shape. A change to the rate that drives one of them, such as amount per transaction, lands on its curve's shape too. Another edit conflicts with the curve table on any one of its targets.

## Type or paste shares

The operation is **Override**. Each **Age** row holds the share of a cohort's lifetime landing at that age. Type percentages in **Share (%)**: `40` or `40%` means 40%, not an amount. You can paste a whole spreadsheet column, including all 90 rows of a 90-day curve.

Fill every row to replace the whole curve. A complete curve must add up to 100%. For a partial edit, leave rows empty. Those rows inherit each segment's current baseline shares, rescaled together to fill the rest of 100%. For example, baseline shares of 50 / 30 / 20 with the first row set to 40 become 40 / 36 / 24. Clearing a typed row restores inheritance. Blank cells in a pasted rectangle clear the corresponding typed rows.

Only typed shares are saved. Empty rows stay live. The curve changes the shape and preserves the lifetime; use a separate lifetime table to change the total.

## Preview a group and start from a curve

**Curve preview** draws every selected segment: a dashed baseline and a solid edited curve. On a table with several targets, it draws one target at a time; switch targets above the chart. Hover an age to see its baseline and edited shares, including the live rescaled values of empty rows. When every segment has the same shares, the tooltip shows them once with the change between them. Otherwise it groups segments that share a value, names each segment by what tells it apart from the others, and lists the highest shares first, counting the rest as **+N more**. Segments with different baselines can have different inherited shares while sharing all the typed ones.

The preview identifies its source as **fitted** or **measured**. Interest and measures forecast by their own trend can use measured curves from complete baseline cohorts. Missing curves and read errors are shown explicitly. If the empty ages have no baseline mass to fill the remainder, type a whole curve.

Under **Start from**, choose a segment or a fitted **Pool** to copy its whole curve into typed rows at the chosen age grain. On a table with several targets, the sources are those of the target the preview shows, and the copied rows apply to every target. This replaces the table's typed shares and leaves the source unchanged. Undo restores the previous cells.

**Refresh baseline** reloads the current promoted baseline for the selected version. It keeps your typed shares fixed and recalculates inherited rows. Reloading the canvas also preserves typed shares and empty rows.

## Choose coarser ages

In settings, **Ages** offers the supported grains: **Native ages**, **Weeks of life** or **Months of life** on daily data, and **Quarters of life** on monthly data. Choices that cover the whole life in one row are unavailable.

A week spans seven days, with a short last row when needed. A 90-day curve ends with **Week 12 · days 84–89**. Months of life are even blocks, not calendar months: 90 days makes three 30-day rows; 365 days makes twelve rows of 30 or 31 days. Each row labels the native ages it covers. Inside each block, the run preserves the cohort's own daily pattern.

Adding or removing a target keeps the typed shares, since the targets share their ages. Replacing every target or changing the age grain clears incompatible typing after confirmation. Cancel keeps the existing values; Undo restores a confirmed change.

## Play and started cohorts

Play is unavailable for invalid shares, an incomplete configuration, unsupported targets, targets whose ages differ or incompatible axes. Typed shares cannot exceed 100%; a fully typed table must total 100%.

A lifetime edit combines with a curve table. Another curve table, calendar edit or piece on the same target, cohorts and segments can conflict. When the conflict is certain, Play is disabled and names both tables. Less certain overlaps are checked by the run.

The preview is a representative shape, not an exact forecast for every daily cohort. A started cohort keeps booked values. Its remaining total follows the new shares over its remaining ages. If those shares are all zero, the run keeps its baseline shape and warns. Nothing is written after the forecast end, and a cohort cut by that end still keeps its lifetime.

A measure such as interest has no lifetime of its own: its lifetime is the sum of its periods. A cohort of such a measure that runs past the forecast end is reshaped from the whole life its baseline calculated. A baseline created before baselines kept complete cohort lives does not have those periods, so the run names the cohort and asks you to rerun the baseline instead of guessing them. Some baselines cannot calculate them, for example when a monthly measure uses a daily input and the forecast ends in the middle of a month. The run then names the reason, such as ending the forecast on the last day of the month.
