# Edit the comparison setup

{% hint style="info" %}
Only the budget owner and administrators can customize the comparison setup. If your organization does not have prior year budgets in Phocas, you can import those budgets to view comparisons. You do this in the [Designer module](https://app.gitbook.com/s/vQCmtGTR7MsjcI62Vdki/designer).

If your workbook includes [additional measures for driver-based budgeting](https://docs.phocassoftware.com/budgets-and-forecasts/owner-and-administrator/create-a-budget/additional-measures-for-driver-based-budgeting), you can add comparison rows for those measures. When you do so, the comparison rows display under their respective measure line in the worksheet, where applicable.
{% endhint %}

{% hint style="warning" %}
Read the [Best practices for efficient budgeting](https://docs.phocassoftware.com/budgets-and-forecasts/create-a-budget/best-practices-for-efficient-budgeting#id-6.-comparative-data-less-is-more) page before you start adding more data into a workbook. The addition of comparative data into a workbook might negatively impact its performance.
{% endhint %}

The comparison setup automatically applies to every budget row in a worksheet tab, so if you add a comparison row against one item, such as Sales, you will also see that row against all other rows, such as Marketing Expense. However, the comparison setup applies to the active tab only, so you need to edit the comparison row setup for each tab.

Access the **Comparison Setup** window using one of these methods:

* Click the **Tab** menu > **Edit comparison setup**.
* Right-click the tab name at the bottom of the workbook and click **Edit comparison setup**.

{% embed url="<https://phocassoftware.wistia.com/medias/mp7uh8klpv>" %}
Set up comparison rows
{% endembed %}

## Edit a comparison row <a href="#edit-a-comparison-row" id="edit-a-comparison-row"></a>

Edit the default comparison row details, for example, change the name or offset, or select a different stream or measure.

## Add more comparison rows <a href="#add-more-comparison-rows" id="add-more-comparison-rows"></a>

Click **+** **Add comparison row**, enter a name, select a stream and measure, and enter the offset.

For example, if you want to compare this year’s budget actuals with the actuals from the budget from two years ago, add a new comparison row called *2 Years Ago Actuals* based on the Profit and Loss stream. The offset is -24, as you want values from 2 years (24 months) ago.

<div align="left"><figure><img src="https://content.gitbook.com/content/aNH5UMuZXBHuAbFF7nI2/blobs/Vn7bVRZJIH0VJ61gpFPI/3353313364.png" alt="image-20240212-225926.png" width="702"><figcaption></figcaption></figure></div>

If you’re partway through the year and therefore, your actuals don’t yet include the entire year’s data, you will get a warning note telling you the actuals are slightly out of range. Any months not yet completed will populate with zeros in the comparison row. For example, if you are currently in November 2020, the December 2021 budget will populate as zeros because December 2020 currently has no activity. You do not need to take any action here; you can enter data manually in the *zeros* cells, or copy forward data from the other months as a starting point.

## Use calculated measures <a href="#use-calculated-measures" id="use-calculated-measures"></a>

The available measures in the comparison row setup depend on the selected stream in the underlying database. Some of the measures have a yellow calculator icon next to them, which signifies that they are a calculated measure in the underlying database. You can hover over the icon to view the underlying formula.

<figure><img src="https://content.gitbook.com/content/aNH5UMuZXBHuAbFF7nI2/blobs/l8CWtEJGVCxvLBhdiafe/3370319898.png" alt="image-20240222-002528.png" width="638"><figcaption></figcaption></figure>

You can also see this formula in the budget worksheet.

## Customize the measure format <a href="#customize-the-measure-format" id="customize-the-measure-format"></a>

Click the menu button (three dots) at the end of the row and switch to **Custom** format, then define your format. See [Format measures in the comparison rows](https://docs.phocassoftware.com/budgets-and-forecasts/customize-the-format-of-measures#format-measures-in-comparison-rows) for more information.

<div align="left"><figure><img src="https://content.gitbook.com/content/aNH5UMuZXBHuAbFF7nI2/blobs/NDfZtMyHGYYnHNyVE22z/3353411694.png" alt="image-20240212-225654.png" width="286"><figcaption></figcaption></figure></div>

## Delete a comparison row <a href="#delete-a-comparison-row" id="delete-a-comparison-row"></a>

Click the menu button (three dots) at the end of the row and click **Delete**. The row is instantly deleted.


---

# 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.phocassoftware.com/budgets-and-forecasts/owner-and-administrator/edit-the-comparison-setup.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.
