# Simulation Interface

Now that we have created scenarios and explored the different ways to simulate, let us see few features that can help you with customizing and fine tuning your scenario analysis.

## 1. Key Inputs

Any important node that drives the KPIs can be added as a Key Input so that it can be viewed and simulated quickly instead of searching for it in the model. You can add multiple key inputs, so that they can be simulated at once and the overall impact can be understood.

### 1.1. Add nodes as key inputs

1. Click the menu icon on the top right corner of the node and choose **Add to Key Inputs** to add that node as a key driver.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FhTtqmtoA6OG9Wl4o5DLA%2FAdd%20to%20Key%20Inputs.png?alt=media&#x26;token=b2099d9c-2750-4c1b-9b48-87888d91652d" alt="" width="375"><figcaption><p><strong>Add to Key Inputs</strong></p></figcaption></figure>

2. You can also add key inputs by clicking on **+Add** in the **Key Inputs** section.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2F5pplGEkFNzmPzPkMeSzL%2Fimage.png?alt=media&#x26;token=30339f8b-4435-4e0c-af9e-259c2c231a50" alt=""><figcaption><p><strong>Add Key Inputs</strong></p></figcaption></figure>

* A pop-up opens in which you can select the desired nodes to be added as key inputs.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FSfJ9zpdsuMkHocMehHK8%2Fadd%20ki.png?alt=media&#x26;token=b32b06cb-0243-4639-bdcd-552a19efff27" alt="" width="375"><figcaption><p><strong>Select the desired node</strong></p></figcaption></figure>

* Key inputs added would be displayed in the **Key Inputs** section where you can instantly edit their values to simulate them and view the results.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FkEchNGIU0cW5cVbhZtvs%2Fimage.png?alt=media&#x26;token=cccbd9e0-3bd2-4e7e-bbb3-d061f046dcea" alt=""><figcaption><p><strong>Key Inputs section</strong></p></figcaption></figure>

3. Another way to add key inputs is through the **Node Settings** window. To open that window, click on the three dots menu and choose **Edit Node**.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FjimT2kQOuoj5lSwubzSP%2FEdit%20Node.png?alt=media&#x26;token=3d395132-0608-46ef-b1bb-6cef93756a87" alt="" width="375"><figcaption><p><strong>Edit Node</strong></p></figcaption></figure>

* This opens the Node Settings window, where you can go to the **Display** section and enable the toggle button **Show as Key Input.**

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FdSf5nVivYX4c0HVJfax7%2Fimage.png?alt=media&#x26;token=f2d7aec8-584c-44de-ad8c-9f83e4c9c8f2" alt=""><figcaption><p><strong>Show as Key Input</strong></p></figcaption></figure>

### 1.2. Remove nodes from key inputs

1. To remove a key input, choose **Remove from Key Inputs** from that specific node's menu.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FHfzfsIkYwGyQZsRuwsgC%2Fimage.png?alt=media&#x26;token=4899d435-2202-40de-8f54-2d1beffe54dc" alt="" width="375"><figcaption><p><strong>Remove from Key Inputs</strong></p></figcaption></figure>

2. In table view, click on the three dots in the actions column beside the required key input and choose **Remove from Key Inputs**.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FnpBcX7mfg79htVSA1cPm%2Fimage.png?alt=media&#x26;token=0793bf09-e95e-4ee1-b6f8-9ca36e197290" alt=""><figcaption><p><strong>Remove from Key Inputs</strong></p></figcaption></figure>

3. The third way to remove a node from Key Inputs is to disable the toggle button **Show as Key Input** in the **Display** section of the **Node Settings** window as explained [here](https://docs.valq.com/model/node-settings#4.2.-show-as-key-input-and-show-as-kpi).

## 2. KPIs

Any important node that you consider as a Key Performance Indicator can be added as a KPI. All the added KPIs are displayed on the KPI ribbon so that after a simulation is done you can see them being dynamically updated with their new value, variance percentage and the simulation impact.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FKxr4cTcLUMb5EFccWlSm%2Fimage.png?alt=media&#x26;token=c18ec3a9-1409-4aa5-a2ac-99af249ea7a8" alt=""><figcaption><p><strong>KPI ribbon</strong></p></figcaption></figure>

Find below the minimal view of KPI ribbon.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2Fdk15QhsviW73OlquoQ30%2Fimage.png?alt=media&#x26;token=924b71a0-68d0-4b7d-a90f-98e0400766e8" alt=""><figcaption><p><strong>Minimal view - KPI ribbon</strong></p></figcaption></figure>

### 2.1. Add nodes as KPIs

1. Click on the menu at the top right corner of the node. Then choose **Add to KPIs**. The node is now a KPI.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FkU9PNYOqB9l8hNvgN55x%2FAdd%20to%20KPIs.png?alt=media&#x26;token=98ffacfa-f153-477d-98db-35e0732640de" alt="" width="375"><figcaption><p><strong>Add to KPIs</strong> </p></figcaption></figure>

2. Alternatively, click the pencil icon beside **KPIs** on the KPI ribbon.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FxqP7yhEXbmGZnRT8CqiX%2Fimage.png?alt=media&#x26;token=47b9bf47-01f6-4292-8a02-1be658b15cbf" alt=""><figcaption><p><strong>Click on the pencil icon next to KPIs</strong></p></figcaption></figure>

* Click **Add** from the pop-up.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FkI2TwS5z6MwWRdSpxjo9%2FAdd%20to%20KPIs_2.png?alt=media&#x26;token=0d886e3f-ce46-4702-9870-71bfd555b9bc" alt="" width="375"><figcaption><p><strong>Click Add</strong></p></figcaption></figure>

* &#x20;Choose the desired node from the list to be added as a KPI.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2Ff3cnXagizgz6OKUSZVPH%2FAdd%20to%20KPIs_Select%20a%20node.png?alt=media&#x26;token=e722af22-87e6-433f-8ee6-7acefd5315f4" alt="" width="375"><figcaption><p><strong>Add to KPIs</strong></p></figcaption></figure>

3. Another way to add KPIs is through the **Node Settings** window. To open that window, click on the three dots menu and choose **Edit Node**.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FjimT2kQOuoj5lSwubzSP%2FEdit%20Node.png?alt=media&#x26;token=3d395132-0608-46ef-b1bb-6cef93756a87" alt="" width="375"><figcaption><p><strong>Edit Node</strong></p></figcaption></figure>

* This opens the Node Settings window, where you can go to the **Display** section and enable the toggle button **Show as KPI.**

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FNPjIStDYls5YPzRUxedD%2Fimage.png?alt=media&#x26;token=d3866ca2-0db0-45be-b926-79d436cd5788" alt=""><figcaption><p><strong>Show as KPI</strong></p></figcaption></figure>

### 2.2. Remove nodes from KPIs

1. To remove a node from the KPIs list, click on the pencil icon beside **KPIs** on the KPI ribbon. Then select the bin icon beside the desired node to remove it.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2F7lLUQ9Njcn6GY8WmjQqs%2FRemove%20from%20KPIs.png?alt=media&#x26;token=9bcfca83-9560-47fb-8ab3-de2b6ff98d9a" alt="" width="375"><figcaption><p><strong>Remove from KPIs</strong></p></figcaption></figure>

2. You can also click on the three-dots menu on the required node and choose **Remove from KPIs.**&#x20;

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2F3Ey94OtqUvHOdeadNTRt%2FRemove%20from%20KPIs.png?alt=media&#x26;token=083d4938-7565-4d8f-b9b0-f3eabeae0604" alt="" width="375"><figcaption><p><strong>Remove from KPIs</strong></p></figcaption></figure>

3. The third way to remove a node from KPIs is to disable the toggle button **Show as KPI** in the **Display** section of the **Node Settings** window as explained [here](https://docs.valq.com/model/node-settings#4.2.-show-as-key-input-and-show-as-kpi).

## 3. Constraints and Violations

Constraint is added to a node to evaluate its performance after simulation, against a threshold. After the simulation, if the node values fall below or exceed these threshold limits, a warning pops up on the screen saying that the constraint has been violated along with the difference by which it has exceeded or fallen below.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FALpmaOxiZ0PTVxicZKZx%2Fimage.png?alt=media&#x26;token=cf5dd899-1735-49c8-9959-e6b2a4f1f1c9" alt=""><figcaption><p><strong>Constraint Warning Pop-up</strong></p></figcaption></figure>

Clicking on the violation warning symbol displays all the constraints set by the user in the model.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FRYBob2hUpNZOLNu7c7RP%2FAll%20Constraints_1.png?alt=media&#x26;token=1d5559a8-7abc-44bc-9b14-a89b2db562bd" alt="" width="375"><figcaption><p><strong>All Constraints violated in the model gets displayed</strong></p></figcaption></figure>

Constraints can be added to the nodes through the Node Settings window. To know more, click [here](https://docs.valq.com/model/node-settings#4.3.-constraint).

## 4. Simulation Period

Simulation period helps set active periods to which you can perform simulation. By default, all the periods are set as the simulation period, and they can be changed to any range of periods (including a single period) for the scenarios. This behavior ensures that when you perform a simulation to the total value it only applies the simulation to the simulation period range.&#x20;

To select the simulation period range, use the drop-down list at the top.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FXslmqms7IEMQO5sM0J2N%2Fimage.png?alt=media&#x26;token=28b02ce5-b604-4b75-87dd-7f9e06a74292" alt=""><figcaption><p><strong>Change Simulation Period</strong></p></figcaption></figure>

In the below example, simulation periods have been selected as 'Apr' through 'Dec', hence the simulation is applied only to these periods as shown below.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FR3pnoHQL2zauygnV60dD%2Fimage.png?alt=media&#x26;token=4421fb1e-e464-4a7e-a84a-901f601aac52" alt=""><figcaption><p><strong>Simulation applied from April to December</strong></p></figcaption></figure>

As you can see from the table view below, the periods outside the range of the simulation period are greyed out/locked indicating that the simulation has not been performed on these periods and they are the actuals.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FNbAmBYUhUOTZ1rErxvrH%2Fimage.png?alt=media&#x26;token=6535565f-5249-46b6-bc8c-472232f1ba98" alt=""><figcaption><p><strong>Simulation Period undergoes changes while other periods are not simulated</strong></p></figcaption></figure>

{% hint style="info" %}
All the scenarios created in the model would share the same simulation period.
{% endhint %}

## 5. Manage View

You can select which node details to display in the tree or table view using the **Manage View** option.

### 5.1. Node Value Display

With this option, you can view the node value, variances, and simulation impact for either only the simulation periods or for all the periods.

In the below example, the model has the time period in months and the simulation period is chosen as Jan to June. A simulation of 10% change is applied to the *Cost of Sales* node. On choosing the **Sim.Months** optio&#x6E;**,** the simulation impact is displayed as 10% and the simulated variances are shown for these 6 periods only.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FO1K72fIwb01d3LurcQeD%2Fimage.png?alt=media&#x26;token=1624a41b-b6a5-462c-b58e-f7fc7c0cc7cf" alt=""><figcaption><p><strong>Node Value for Sim. Months</strong> </p></figcaption></figure>

On Choosing the **Full Year** option, the simulation impact and the variances are re-calculated for all 12 months (Full Year range here, consists of Jan to June as simulation periods and Jul to Dec as actuals). Hence, the simulation impact is shown as 5% for the full year.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2Fpz1wM4lp4ZahxxQ5VdAP%2Fimage.png?alt=media&#x26;token=b355d3fa-36b0-46c2-853a-700d3252c0e7" alt=""><figcaption><p><strong>Node Value for Full Year</strong></p></figcaption></figure>

### 5.2. Secondary KPIs Display

To view the secondary KPIs on nodes, click on the option available here as shown in the image.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2F504o5anoDPMcKvJ5Op89%2Fimage.png?alt=media&#x26;token=554abe1e-eb8f-41c3-9d2a-611c17b4cf08" alt=""><figcaption></figcaption></figure>

To learn how to set secondary KPIs, check out [this section](https://docs.valq.com/model/node-settings#4.5.-secondary-kpi).

### 5.3. Node Details Display Settings

You can display or hide a few more details like variance, variance%, simulation impact%, trendlines, conditional formatting, composite nodes, etc. by toggling the respective buttons.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FdUkwQzDCBMb3K7lHEvY6%2Fimage.png?alt=media&#x26;token=22321d49-00e0-4ccc-aecc-6683e8a2d6e0" alt=""><figcaption><p><strong>Other Display Settings in Tree View</strong></p></figcaption></figure>

In Table View, you can check on the fields that you wish to display.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FJC7KvQESvP8O5QHRoK2m%2Fimage.png?alt=media&#x26;token=38139e85-4dea-457a-ab1f-94501f699135" alt=""><figcaption><p><strong>Table View Fields Display</strong></p></figcaption></figure>

## 6. Lock nodes from simulation

To lock a specific node from being simulated, you can set the **Simulation Method** of that node to *None.* To know more, click [here.](https://docs.valq.com/model/node-settings#3.1.-simulation-method)

In the below image, the node that is disabled for simulation has a lock symbol to indicate the same.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FQOkpdsPBTB4PBYj3IG3w%2Fimage.png?alt=media&#x26;token=8a122e6b-8434-4bb7-8a57-ee803afcc281" alt="" width="563"><figcaption><p><strong>Nodes locked for Simulation</strong></p></figcaption></figure>

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2F4RY9QtzPDnwG8jHg2yhT%2Fimage.png?alt=media&#x26;token=ac521ec5-7fb6-4bcf-a55a-f8e1067877e9" alt=""><figcaption><p><strong>Simulation locked-nodes in table view</strong></p></figcaption></figure>

## 7. Focus Node

When you are working on large models, you might need to focus and zoom in on a specific node and its children on the canvas at the click of a button. Focus Node feature comes in handy in this case. Hover over the node and then click on <img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FViqNy6jcMoTTlJ7TjSXV%2Fimage.png?alt=media&#x26;token=74564d51-c702-4dfb-94bc-d3f960fe3a49" alt="" data-size="line"> icon on the top right corner of the node.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FPcogDmnc5kgrtrkX8tgY%2Fimage.png?alt=media&#x26;token=2287aee7-6fe1-4c05-b40d-ef8693d28a6c" alt=""><figcaption><p><strong>Click 'Focus Node'</strong></p></figcaption></figure>

This creates a new tab with only the selected node and its children showcased on the canvas.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FeE0xTZ08YVYM32O0a6cN%2Fimage.png?alt=media&#x26;token=c801eda3-0669-4b26-b984-57c6b346194b" alt=""><figcaption><p><em><strong>US</strong></em><strong> Node is in focus mode</strong></p></figcaption></figure>

You can create multiple focus nodes and click on the required tabs/focus nodes to switch between the views and quickly navigate through the model.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FpmJPx7qft3Lw9WsqiJAj%2Fimage.png?alt=media&#x26;token=413bf1b8-1877-48ea-9f2d-90fa58a6f4e3" alt=""><figcaption><p><strong>Multiple Focus Nodes</strong></p></figcaption></figure>

## 8. Settings

Within the settings menu, you can find custom display options like show or hide empty nodes, node count, conditional formatting, and impacted nodes by simulation. You can change canvas and display-related settings like expansion level, theme, main color, font color, background color, the color of derived nodes, connectors, etc. from here.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FEUqsNFvRPC6i2skolhEZ%2Fimage.png?alt=media&#x26;token=da0930b5-ac44-4b9c-90a8-e8ae2adf9ad0" alt=""><figcaption><p><strong>Settings menu in Tree View</strong></p></figcaption></figure>

Accessing this menu from the table view provides table design-related settings as shown below.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FfSEYujjZ5FMhr72xNoZP%2Fimage.png?alt=media&#x26;token=b9e018c7-fa62-4244-8d24-6443990a9441" alt=""><figcaption><p><strong>Settings menu in Table View</strong></p></figcaption></figure>

## 9. Number Scaling

Change the number scaling on nodes and increase or decrease decimals by clicking on this option at the top.

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2Fw93PBrIub6AJGh9HDZGQ%2Fimage.png?alt=media&#x26;token=8f7db75b-b911-42b9-b1b8-c205fd89d7e3" alt=""><figcaption><p><strong>Number Scaling</strong></p></figcaption></figure>

## 10. Export

To export your scenario to Excel or in PDF, click on the icons as shown in the below image. This is already discussed in [Export Scenario.](https://docs.valq.com/manage-scenarios#export-scenario)

<figure><img src="https://261229348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmXNCTvPRjJZj6UunHBgb%2Fuploads%2FAdcss939BV3JqFETJwri%2Fimage.png?alt=media&#x26;token=f59379e4-35fd-4ccf-9cb5-95e12f79fedd" alt=""><figcaption><p><strong>Export Scenario</strong></p></figcaption></figure>
