> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Parameter sets

The **Parameter Sets** widget allows you to:

* Display the default and experimental parameter values. See the [Parameters](../regulatory-calcs/parameters) section for information on parametrization in Atoti CVA Risk Capital.
* Create or edit What-If on parameters.

The key fields defining the parameters and their values before and after the change submission are displayed in a table.

The Parameter Sets widget provides the following features:

<table><thead><tr><th>Element</th><th>Description</th></tr></thead><tbody><tr><td><strong>Category</strong></td><td>Select a table of parameters from the Datastore.</td></tr><tr><td><strong>Parameter Set</strong></td><td>Select a version of parameter definitions. For details, see <a href="../regulatory-calcs/parameters">Parameter Sets</a>.</td></tr><tr><td><strong>Mode</strong></td><td>Start a new WhatIf simulation (<strong>New</strong>), edit an existing WhatIf simulation (<strong>Edit</strong>), or compare values in two different branches (<strong>Compare</strong>).</td></tr><tr><td><strong>Lineage</strong></td><td>Toggle between the following display options:\* (Default) Only parameters that have the specific label you set in the Parameter Set.\* Include parameters inherited from previous regulation versions.</td></tr><tr><td><strong>View branch</strong></td><td>Selects the base branch for your new branch or comparison. By default the base branch is master for comparisons and always master when creating a new branch.</td></tr><tr><td><strong>Mode branch</strong></td><td>When in <strong>New</strong> or <strong>Edit Mode</strong>, enter the name of your new branch. When in <strong>Compare Mode</strong>, select the comparison branch.</td></tr></tbody></table>

## Using the widget

The following sections explain how to set up and run a simulation.

### 1. Setting up your simulation

1. In the top left menu, click **Insert** > **Widgets**, then drag and drop the **Parameter Sets** widget to your dashboard.

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/parameter-sets-icon.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=3a10eafa4f23fd3e27ac3497c00d2bbe" alt="Parameter Sets widget add" width="447" height="362" data-path="solutions/cva-risk-capital/6.0/images/parameter-sets-icon.png" />
</Frame>

On initial display, you can see the parameter values as in the master branch.

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/parameter-sets-widget.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=4ab1153e999b3f9f6424aaa49dbcec59" alt="Parameter Sets widget Illustration" width="1107" height="416" data-path="solutions/cva-risk-capital/6.0/images/parameter-sets-widget.png" />
</Frame>

2. From the **Category** dropdown list, select a store.
3. From the **Parameter Set** dropdown list, select the parameter set you require.
4. (optional) Toggle the **Lineage** selector if you want to also display the parent parameter set in addition to the selected set.
5. Set **Mode** to **New** to create a new What-If branch.
6. In the **Mode Branch** field, enter a descriptive name for your what-if simulation. For example, “WhatIf FX Delta RW > 0.3” for the branch in which ““FX Delta Risk Weight” is changed to “0.3”.
   This name will show up in your data visualization widgets and filters.
   The current values for each parameter in the selected parameter set are
   displayed for the master branch and your new branch.
   You can now make changes.

### 2. Making your changes

1. To find the parameter you require, use the search
   filter by clicking on the magnifying glass on the column header.

   <Frame>
     <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/parameter-sets-widget-search.gif?s=eb0bdb50349e3f792f0cc08630b4847e" alt="Use the search filter" width="1266" height="620" data-path="solutions/cva-risk-capital/6.0/images/parameter-sets-widget-search.gif" />
   </Frame>
2. For each parameter, enter your changes directly in the corresponding
   value field on your new branch. The system highlights changed rows
   in yellow, to indicate the selected values will be modified when you create your branch in the next step.

   If required, you can delete your changes by clicking **Discard Changes** at the bottom of the table. This removes all your changes and reloads the default values.
3. Click **View Summary** to review your changes. You have the following options:

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/whatif-parameters-summary.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=c920e72ffd01ccafe43c76b3770210cd" alt="Illustrating Parameter Changes Summary" width="932" height="403" data-path="solutions/cva-risk-capital/6.0/images/whatif-parameters-summary.png" />
</Frame>

* **Keep Editing**: Closes the summary window and returns you to the Parameter Sets table to continue your modifications.
* **Create WhatIf**: Creates your new branch with the values you changed.

4. Once you are happy with your changes, click **Create WhatIf**.

The widget creates your new branch with the values you changed.

You can now compare your new branch to master.

<Tip>
  To view the experimental calculations, add the hierarchy [\[Epoch\].\[Epoch\]](../cube/epoch.epoch) into the view, for example, on columns of your Pivot Table. You may also want to set a filter on this hierarchy and select: master and your branch.
</Tip>

### 3. Comparing your changes

To display the committed changes made in your branch:

1. Set **Mode** to **Compare**.
2. Select your branch from the **View branch** dropdown and the branch to compare against from the **Mode Branch** dropdown.
   Changed values between the selected branches are highlighted in blue.

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/parameter-sets-compare-changes.gif?s=9d437bc3988b537f435be6069f6143d2" alt="Comparing your changes" width="1265" height="620" data-path="solutions/cva-risk-capital/6.0/images/parameter-sets-compare-changes.gif" />
</Frame>

<Tip>
  Toggle the **Lineage** selector if you want to also display values that were changed in the parent parameter set in addition to the selected set.
</Tip>

### 4. Viewing the effects of your changes

<Tip>
  To view the simulated calculations, add the hierarchy [\[Epoch\].\[Epoch\]](../cube/epoch.epoch) into the view, for example, on columns of your Pivot Table. You may also want to set a filter on this hierarchy and select “master” and your branch.
</Tip>

### 5. Modifying your changes

To review and update changes on your branch:

1. Set **Mode** to **Edit**.
2. Select your branch from the **Mode Branch** dropdown list.
   The widget presents an additional column, with your branch name prefixed with **Edited**.
3. For each parameter, enter your changes directly in the corresponding value field in the **Edited** column. The system highlights changed rows in yellow, to indicate the selected values will be modified when you update your branch in the next step.

   If required, you can delete your changes by clicking **Discard Changes**. This removes all your changes and reloads the initial values in your branch.
4. Click **View Summary** to review your changes. You have the following options:
   * **Keep Editing**: Closes the summary window and returns you to the parameter set table to continue your modifications
   * **Update WhatIf**: Updates your branch with the values you changed

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/parameter-sets-widget-edit-branch.gif?s=a0395bbfd8c0c75f0d02fde9e053c148" alt="Editing your What-If branch" width="1265" height="678" data-path="solutions/cva-risk-capital/6.0/images/parameter-sets-widget-edit-branch.gif" />
</Frame>

5. Once you are happy with your changes, click **Update WhatIf**. The widget updates your branch with the values you changed.

## Managing the parameter set simulation

Use the [WhatIf Manager](../what-if#whatif-manager) to manage your branches and review your
simulation runs.

<Tip>
  For details on settings and disabling/enabling the widget, see [Parameter Sets Widget](/products/tools/ui-components/latest/online-help/components-features/widget/widget-parameter-sets) in the UI Components Documentation.
</Tip>

## See also

* [File Upload](./file-upload)
* [Parameter Sets](../regulatory-calcs/parameters)
* [\[Epoch\].\[Epoch\]](../cube/epoch.epoch)
* [\[Parameter Set\].\[Parameter Set\]](../cube/parameter-set.parameter-set)
