# Visualize the model using the tree layout

This article explains how to enable and apply the tree layout to a model.

{% hint style="info" %}

#### Note

This item is in preview.
{% endhint %}

### Create Tree View

1. To configure the tree view, select **Layout > Tree**.

<figure><img src="/files/yuqblMr2HXleHqCk8CyV" alt=""><figcaption></figcaption></figure>

2. Select the baseline and comparison series. In this sample scenario, you set *Budget* as the baseline series and *Projection* as the comparison series. Select **Save**.

<figure><img src="/files/MfP4iBD4AWOadmHkwOZR" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

#### Note

**Baseline series** is the primary series on which the simulations are performed.

**Comparison series** is the series against which the Baseline is compared. It is optional to have a comparison series while creating a tree view model or a scenario.
{% endhint %}

3. The model is now represented in a tree view layout with the chosen baseline and comparison series.

<figure><img src="/files/mvBR5qottYSiWqRoeTjc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

### Note

* Baseline and comparison series can be native measures, user-created data input measures or forecast measures.
* Simulations are done on the baseline series only.
* You can have no comparison series, or you can have any existing series as a comparison series that you can pick from the dropdown.
  {% endhint %}

When you remove the comparison series, only the baseline series is displayed in the tree view, on which you can simulate and visualize outcomes.

<figure><img src="/files/Gg61zAIADnNz0Gwo44xt" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

### Note

To know about tree view, node settings and configuration, see [Tree view](/planning-sheets/how-tos/tree-view.md).
{% endhint %}

### Compare baseline and comparison series

The tree view that includes comparison series displays nodes with variance values obtained by comparing both series.&#x20;

Nodes in green indicate that the variance is favorable based on the desired trend you set. For example, a positive variance is favorable when the desired trend is increasing, while a negative variance is favorable when the desired trend is decreasing. Unfavorable variances are shown in red. You can also format them to appear in orange or other colors depending on the variance.

<figure><img src="/files/Mti49sR3upoze2g8TBZO" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Know more about node settings in these sections: [Configure row properties](/planning-sheets/how-tos/configure-row-properties-in-the-model.md) and [Node settings](/planning-sheets/how-tos/tree-view.md).
{% endhint %}

### Create Scenario

Within the tree view, use scenarios to test different 'what-if' situations in your model. You can simulate one or more input nodes and save each set of input changes as a separate scenario and compare results.

{% hint style="info" %}

### Note

When you create scenarios and simulate, you are simulating the baseline series.
{% endhint %}

1. Select **Create** **scenario** to create a new scenario.
2. Enter a name for the scenario, and then select the series to include in the simulation. You can choose from the native, data input, and forecast series that are added to the planning sheet.
3. Select **Create**.

<figure><img src="/files/P6U7mZVm1wLIMo8sQmua" alt="" width="375"><figcaption></figcaption></figure>

A scenario is created by adding simulation sliders to nodes, which you can use to adjust values and run simulations.

You can simulate the baseline series with or without the comparison series.

### Simulate baseline series without comparison series

### Simulate values

1. To simulate a node, move the slider left or right. Move the slider to the left to reduce the value and move it to the right to increase it. Alternatively, enter the percentage change in simulation directly into the text box.&#x20;

<figure><img src="/files/sfXajwUDMAMJUahs5rWV" alt=""><figcaption></figcaption></figure>

2. But reducing COGS represents a positive scenario, while increasing COGS represents a negative scenario. To reflect this, set the desired trend of the COGS node to decrease. To edit a node, select the node's context menu and choose **Edit Node**.

<figure><img src="/files/jwyGie2nEEJhJMNdMZw1" alt=""><figcaption></figcaption></figure>

3. Select the desired trend as **Decrease**, then select **Apply**.

<figure><img src="/files/SvKDGZzHBMAVWkTpzCqS" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

#### Note

To learn more about configuring the node's trend and simulation settings, see [configure row properties](/planning-sheets/how-tos/configure-row-properties-in-the-model.md).
{% endhint %}

4. Similarly, configure each node in the model.&#x20;
5. Simulate the other nodes as required.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/how-tos/visualize-the-model-using-the-tree-layout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
