# Configuring a Forecast Version

On the forecast version page, open **Model Configuration**. **Forecast Model** chooses the forecasting algorithm; **Strategy** sets how Galdera forecasts or calculates each measure. To change the algorithm, use **Forecast Model** without changing **Strategy**.

Use the same block to select training data, measures, and dates. Edits save automatically. You need edit access; unlock the selected run to change a locked configuration.

To create a version from **Files**, choose **New canvas**, name it, then type `/` and choose **Version**. From the collapsed sidebar, you can also open **Versions** and click **New Version**.

:::note[Beta: Agent mode]
Agent mode is in beta. Available actions depend on your workspace and permissions. If an action is unavailable, the assistant can explain how to do it in the app.
:::

## 1. Select the training data

In the **Training data** section, choose which ingestions this version trains on. An ingestion is one upload or sync from a source. This is how you control the data a version uses: for example, a version that only uses your Variable Costs source, or one that uses everything.

Each measure you forecast is tied to the ingestion that provides its history. When exactly one selected ingestion provides a measure, Galdera assigns it automatically. Otherwise, select the ingestion in that measure's row.

## 2. Choose measures and their strategies

In the measure table, select the measures this version forecasts. Each selected measure has a **Strategy** that decides how its forecast is produced:

| Strategy | How the forecast is produced | Use it for |
|---|---|---|
| **Independent** (default) | The ML models forecast the measure directly from its own history. | Most income-statement lines and other flows the model can learn. |
| **Dependent (via Metric)** | The ML models forecast a metric that decomposes the measure, and Galdera rebuilds the measure from that metric. | Measures best explained by a more stable ratio. |
| **Roll forward** | No model. The measure starts from its last actual balance and adds or subtracts the flows you choose. | [Stocks](/concepts/metric-vs-measure): balances such as PP\&E, inventory, or debt. |
| **Derived** | No model. Each period, the measure is calculated from a formula over other measures, which can reference the previous period. | Lines that are a fixed calculation of other lines. |

### Dependent (via Metric)

Galdera forecasts a metric instead of the measure, then reconstructs the measure from it. For example, forecasting Streaming Revenue via Revenue per Viewer means the model forecasts the per-viewer ratio, and Galdera rebuilds revenue as ratio × viewers. This helps when the ratio is more stable or better understood than the raw measure. The picker only offers metrics that decompose the selected measure.

### Roll forward

A roll-forward measure starts from its **anchor**, the last actual balance, and accumulates the flows you add as **terms**. Each term has a + or − sign. For example: PP\&E = last actual + capex − depreciation. The pane shows anchor coverage, so you can confirm that every slice of the data has a starting balance.

### Derived

A derived measure is calculated each period from a formula, built with the same formula builder used for metrics. Formulas can reference the **previous period**. For example: Additions = Capex × −1, or D\&A = PP\&E − previous-period PP\&E.

For a stock set to **Roll forward**, the change in each forecast period equals the sum of the signed flow terms you configured. A **Derived** line follows its formula. Galdera does not check whether the whole balance sheet balances; you need to check that yourself. For a worked setup, see [Modeling the Three Statements](/forecasting/three-statement-modelling).

### Rules the configuration enforces

* **Keep an ML-forecast line.** The strategy picker prevents changing the last Independent measure to another strategy. A run must include at least one measure forecast directly or via a driver metric; an entirely Roll forward/Derived model cannot run.
* **No same-period loops.** Measures can reference each other across periods, which is how stocks accumulate. A loop where every reference is in the same period is rejected when you save. The error names the loop so you can choose which direction to keep.

## 3. Set the dates

* **Training Start**: how far back the model learns from history.
* **Forecast Start** and **Forecast End**: the prediction window.

All three dates are required. **Forecast Start** must be after **Training Start**, and **Forecast End** must be after **Forecast Start**.

## 4. Choose the forecasting model

In **Model Configuration**, use **Forecast Model**, not **Strategy**, to choose the algorithm used to fit forecasts. Keep **Auto (Recommended)** to let Galdera select one from the training history. If the version forecasts only cohorted measures, the selector is labeled **Lifetime Forecast Model**. Choosing a value in the version-wide selector replaces any per-measure model choices.

When the version is configured, you can run it. See [Running a Forecast Version](/forecasting/running-forecasts).

## Configure a version with the assistant

In **Agent** mode, you can ask the assistant to create a named forecast version or change an existing version's **Model Configuration**. For example: "In Annual Plan, change only the forecast end to December 31, 2027. Keep everything else and do not run it." The assistant shows the version it found and the exact changes, and waits for you to click **Allow** or **Deny**.

Set the version-wide **Forecast Model** yourself in **Model Configuration**. The assistant can change the model for individually named, non-cohorted measures when it has permission, but it cannot set the version-wide selector.

What to expect:

* Galdera validates the new settings before showing the confirmation and again before saving. If something is wrong, the assistant tells you what.
* If you add a measure whose data comes from a source the version doesn't train on yet, the assistant picks one of that measure's completed ingestions, and the confirmation names the training data it adds.
* Settings you didn't mention, and notes on the version's canvas, are kept as they are.
* Changing a measure to **Derived** or **Roll forward** can affect shared measure definitions, such as formulas and dependencies. The confirmation lists these effects so you can review them.
* Saving the configuration does not start a run. If an edit fails, the assistant does not run the version with its old settings instead.

### Cohorted measures in chat

A cohorted measure is loaded from a file with a cohort date and a report date. Configure its forecast, including its cohort settings, on the forecast version page.

In both **Ask** mode and **Agent** mode, the assistant:

* Does not add a cohorted measure to a version, change its forecast settings, or set its cohort settings.
* Does not describe a cohorted measure's forecast configuration. It names the measure and points you to the version page instead.
* In **Agent** mode, where available, can still change version-wide settings, such as the forecast dates, on a version that includes cohorted measures.
