---
title: "Versioning a Model"
description: "Lucanet xP&A automatically takes snapshots of your model (or set of linked models) at regular intervals, and you can also manually save a named version of a model."
source_url: https://support.lucanet.cloud/en/documentation/xp-a---extended-planning-and-analysis/working-with-models/versioning-a-model
language: en
last_updated: 2023-08-16
---
# Versioning a Model

## Overview

xP&A automatically takes snapshots of your model (or set of linked models) at regular intervals, and you can also manually save a named version of a model.

Versions and snapshots are useful for:

- Comparing different versions of the model(s) against one another
- Rolling back to older versions if you want to revert a set of changes

## Opening the Version History

To navigate to the version history of a model, click the **Versions** button in the top rght corner in the **Spreadsheet** view:

Opening the version history of a model

The version history is displayed as follows, for example:

Version history of a model

On the right side of the table header, you can choose to **Show named versions only** or to **Show all versions**, i.e. also those automatically created by the system.

## Manually Adding a Named Version

In addition to the snapshots that are automatically created by the system, you can manually save **named versions** of your model (or set of [linked models](https://docs.causal.app/variables/organizing-variables/variables-and-linked-models)).

For example, if you finalize a budget, you can save a version called "Budget 2025" and refer back to it later or use it in charts and tables as a comparison against actuals.

You can also view named versions but will not be able to edit anything in it, unless you roll-back.

To save a named version:

{% stepper %}
{% stepper-step %}
Open the **version history** of the model.
{% /stepper-step %}
{% stepper-step %}
Enter a **name** for the **New version**.
{% /stepper-step %}
{% stepper-step %}
Click **Create**.

{% /stepper-step %}
{% /stepper %}
Creating a named version

{% warning-box %}
- All linked models must have the same [fiscal year settings](https://support.lucanet.cloud/en/documentation/xp-a---extended-planning-and-analysis/modeling-your-data/working-with-time.md) in order to save a version.
- If you change the [granularity of a model](https://support.lucanet.cloud/en/documentation/xp-a---extended-planning-and-analysis/modeling-your-data/working-with-time/time-granularities.md), you will no longer be able to compare with prior versions.
- If you have a model that is [linked to a data source](https://support.lucanet.cloud/en/documentation/xp-a---extended-planning-and-analysis/integrating-data.md), each version will use the values from the data source that existed when the version was saved. Versions will not be re-evaluated, e.g. if values in the data source change.\
\
However if **you roll the model back** to that version, it will be **re-evaluated with updated values** from the data source.
{% /warning-box %}

## Options for a Named Version

If you hover over the row of an exisitng named version, you can:

- **Edit** the name
- **Delete** the version, using the trash bin icon
- **View** the version in read-only mode.
- **Roll-back** to the version to be able to edit it

Options for a named version

{% warning-box %}
If you have a model that is [linked to a data source](https://support.lucanet.cloud/en/documentation/xp-a---extended-planning-and-analysis/integrating-data.md), each version will use the values from the data source that existed when the version was saved. Versions will not be re-evaluated, e.g. if values in the data source change.

However, if you **roll the model back** to that version, it will be **re-evaluated with updated values** from the data source.
{% /warning-box %}
