# Scenario Versioning
URL: https://docs.valsight.ai/scenario-versioning/
Description: On this page you will find a general description of scenario versions as well as a tutorial on how to create them.
On this page you will find a general description of scenario versions as well as a tutorial on how to create them.

Different Scenario Versions can be compared in Charts. Please keep in mind that you can only restore [Assumption Versions](/assumption-versioning/)!

## Sharing a scenario

Whenever you *Share* a Scenario of which you haven't created a version, Valsight will automatically create one once its shared. This Version will have the name and description you entered when sharing the scenario.

![Share Scenario v2.18.png](./images/5094194138.png)![Screenshot 2019-04-10 at 18.53.51.png](./images/5094194673.png)

## Changing assumptions

Whenever you change an Assumption or Line Item that is part of the scenario and save or share said scenario,
Valsight will automatically create a new [Assumption Version](/assumption-versioning/).

This Version will have the name and description you entered when sharing or saving the scenario.

## Create a new scenario version

First, open the *Scenario Manager* and select the *Options* (3 dots) next to the Scenario you want to version. Then select *Versioning → Save Version*. Please keep in mind that Scenario Versions can't be deleted.

![starting\_point.png](./images/5094191363.png)

Now you can name your Scenario Version, add a description (optional) and *Confirm* to save. Please keep in mind that Scenario Version names have to be unique.

![scenario\_version\_creation\_ui.png](./images/5094191358.png)

## Editing scenario versions

Open the *Scenario Manager* and select the *Options* (3 dots) next to the Scenario of which you want to restore a previous version. Now select *Versioning → Show History* to open the version history of the selected Scenario.
Here you can decide, if the version should be an option to be compared in your charts. See Use Scenario Versions in Charts to learn more.

![Screenshot 2019-04-10 at 18.59.23.png](./images/5094194708.png)

Similar to "Editing Scenario Versions", you can select the scenario version(s) that you would like to delete, then hit the "Delete" button at the bottom of the dialog:

![Screenshot 2019-04-10 at 19.02.29.png](./images/5094194703.png)

There are currently several outcomes of this operation:

1. You cannot delete a scenario version that is being "shared" (you need to manually "unshare" it before deleting it)

   ![Screenshot 2019-04-10 at 19.04.58.png](./images/5094194698.png)
2. If deleting a version will trigger the automatic deletion of other versions that refer to it (but not used anywhere else), you will be prompted a list of "affected versions". All of these versions (including the ones you are selected) will be removed after you confirm the action:

   ![Screenshot 2019-04-10 at 19.12.03.png](./images/5094194693.png)

   tips: you can mouse-hover on the items to see more details (i.e. which original scenario it is, when it was created, etc.)
3. If deleting a version should trigger the automatic deletion of other versions that refer to it, but these versions are still shared, or otherwise used somewhere else in the project, you will be shown a list of "version dependencies", from which you can take manual actions before you can come back and retry deleting the version you initially selected:

   ![Screenshot 2019-04-10 at 19.17.56.png](./images/5094194688.png)

   tips: you can mouse-hover on the items to see more details (i.e. which original scenario it is, when it was created, etc.)

   **ENABLE SCENARIO VERSIONS TO BE USED IN CHARTS**

   To be able to select your Scenario Version in a chart, you first need to check *Used in charts* in your Scenario Version History.

   ![Scenario Version use in Charts charts v2.18.png](./images/5094216007.png)

   ***Insert Scenario Versions into Charts***

   All Scenario versions that are marked as *Used in charts* will now be selectable in the [chart configuration menu](/creating-charts/).

   ![scenario\_version\_selectable\_in\_chart\_config v2.18.png](./images/5094215798.png)

   Congratulations, you can now compare different scenarios versions in your charts.

   ![scenario\_versions\_in\_charts.png](./images/5094216016.png)

   > Learn more about [Chart Types](/chart-types/) and [How to Create Charts & Tables](/creating-charts/).
