> ## 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.

# What-If analysis

> Overview of What-If analysis in Atoti FRTB, covering desk reclassification, trade scaling, parameter set changes, file upload, and simple datastore simulations

Atoti FRTB uses native Atoti What-If capabilities to deliver powerful simulation tools in the following areas:

* Desk reclassification (IMA/SA)
* Trade scaling
* Parameter set changes (including correlation and risk weight)
* Datastore changes

What-If is applicable at any level in the hierarchy. The effect of the what-if simulation can be drilled down and propagated to the lower levels.

## Types of What-If analysis

* Desk reclassification.
  See [Switch Desk What-If Tool](https://docs.activeviam.com/solutions/frtb/6.0/what-if/what-if-switch-desk.md)
* Scaling: adjust the trade data by a given percentage or an absolute
  amount.
  See [FRTB Trade Scaling](https://docs.activeviam.com/solutions/frtb/6.0/what-if/what-if-scaling.md)
* Parameter set changes.
  See [Parameter Sets What-If Widget](https://docs.activeviam.com/solutions/frtb/6.0/what-if/what-if-parameters-widget.md)
* File upload: create or append a What-If scenario by uploading CSV files into the cube.
  See [File Upload](https://docs.activeviam.com/solutions/frtb/6.0/what-if/file-upload.md)
* Simple datastore changes: modify data in the datastore.
  See [Simple Datastore Changes](https://docs.activeviam.com/solutions/frtb/6.0/what-if/what-if-simple-datastore-changes.md)

Watch the video tutorial on Trade Scaling and Desk Reclassification:

[https://fast.wistia.com/embed/iframe/4treytr1hx](https://fast.wistia.com/embed/iframe/4treytr1hx)

## Branches

Each simulation you run creates a separate cloned branch of the master.
However, as the What-If is purely for simulation purposes, these
branches never impact the master branch.

### What-If Manager

To manage your branches and the simulations on them, use the **What-If Manager**.

To open the What-If Manager:

1. In the top left menu, click **Insert** > **Widgets**. This opens the list of available widgets.
2. From the list, drag and drop the What-If Manager widget to your dashboard.

   ![Open What-If Manager](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/whatif-manager-open.gif?s=73994633afbd4e1687320cd38596c61d)

The widget displays a list of your branches:

![What-If Manager screen](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/whatif-manager.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=bf9404fd216fafe29451cca9d30671ac)

You can view the audit columns (Submission Name, Created by, Creation Date, Execution Date, Status, Branch Name, Operation), and remove a branch by clicking the **Delete** button.

Clicking the + button in front of a row displays more details about your branch. Here you can also run a diff between the changes on your What-If branch and the master branch.

> [!NOTE]
>
> The diff is not available for What-Ifs created using the file upload widget.

![What-If Manager diff](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/whatif-manager-details.gif?s=a320d1fca1b1c57da47b122752e10655)

## Audit trail

In the reference implementation of Atoti FRTB, there is no audit
trail or persistence for the What-If simulations. Instead, the What-If
branches are cleaned up on a regular basis depending on your
configuration.

## Customizing the What-If configuration

The What-If framework has been designed to be adapted and configured
based on your use cases.
