# Relationship with the Financial Statements module

Although [Financials Statements](https://docs.phocassoftware.com/financial-statements/) (FS) and Budgets & Forecasts (B\&F) are available as standalone modules, they are interdependent. When used together, these modules provide a Financial Planning and Analysis solution. The following diagram illustrates the workflow between the two modules.

<div align="left"><figure><img src="/files/3AIU0HHVDmaQzuWOPqKm" alt="" width="550"><figcaption></figcaption></figure></div>

1. Your Profit and Loss, Balance Sheet, and Cash Flow statements are created and managed in FS, based on the data in your Phocas financial database.
2. You start the budgeting process by creating a budget from within either FS or B\&F, based on a Profit & Loss statement.
3. Then, in B\&F, you manage the Profit and Loss budget, and create Balance Sheet and Cash Flow budgets. The structure (layout) of each budget is based on the underlying financial statement. From these budgets, you create forecasts. After completing the budgeting and forecasting processes, you publish the data to streams in FS.
4. Back in FS, you view and analyze budgets, forecasts, and other published data alongside your other financial information.

{% hint style="success" %}
See the [Compare actuals, budgets and forecasts](/budgets-and-forecasts/contributor/review-the-budget-or-forecast/compare-actuals-budgets-and-forecasts.md) to learn how to use the FS and B\&F modules together to answer common questions.
{% endhint %}

## Relationship between the statement and budget setups <a href="#relationship-between-the-statement-and-budget-setups" id="relationship-between-the-statement-and-budget-setups"></a>

The following image shows how the elements in the Profit and Loss statement setup in FS are carried through to the budget workbook setup in B\&F. The matching elements have the same numbers and colors and are in the table described below.

{% hint style="success" %}
As you can see, the statement setup strongly impacts the budget setup. Therefore, you should consider creating a [custom statement](#custom-statements) for budgeting and forecasting purposes.
{% endhint %}

<figure><img src="/files/7ednpX51WMO2i7vn67nL" alt="image-20240424-022342.png" width="952"><figcaption></figcaption></figure>

<table><thead><tr><th width="51"></th><th>Profit and Loss (P&#x26;L) setup in FS</th><th>Budget setup in B&#x26;F</th></tr></thead><tbody><tr><td>1</td><td><strong>Database</strong>: The financial database upon which the statement is based.</td><td><strong>Database</strong>: The financial database upon which the budget is based (the same as the statement). This is where the budget data will ultimately be published.</td></tr><tr><td>2</td><td><strong>User</strong>: The signed-in user (your initials).</td><td><strong>Budget Owner</strong>: The user who created the budget workbook and has overall administrative control. If you create a workbook, you’ll see your name here. <br>See <a href="/pages/xXE6JUyhizLZSr8i4EM4">Overview of users and data access</a>.</td></tr><tr><td>3</td><td><strong>Statement</strong>: The type of statement, which is always a P&#x26;L statement. There might be several custom P&#x26;L statements to choose from.</td><td><strong>Statement</strong>: The particular P&#x26;L statement upon which the budget is based. This setting determines the layout of the budget.</td></tr><tr><td>4</td><td><strong>Measure</strong>: The type of values that are displayed in the statement grid. If your organization uses multiple currencies, you might have this set to local currency or reporting currency.</td><td><strong>Measure</strong>: The type of values that are displayed in the budget grid. <br>See <a href="/pages/56y93fAEQ8SsMSyoOWV3">Customize the format of measures</a>.</td></tr><tr><td>5</td><td><strong>Current (stream)</strong>: The source of the current data in the database. There might be multiple streams to choose from.</td><td><strong>Stream</strong>: The source of data used to populate the initial budget values. This will also determine the dimension row combinations that are included in the budget.</td></tr><tr><td>6</td><td><strong>Period</strong>: The timeframe for the financial period.</td><td><strong>Period</strong> > <strong>Start and End</strong>: The start and end dates of the budget period.</td></tr><tr><td>7</td><td><strong>Levels</strong>: Additional dimensions levels in the statement that you can expand to view the information in more granular detail. This has a big impact on the structure of the budget.</td><td><strong>Levels</strong>: Additional dimension levels in the budget that you can expand to view and budget the information in more granular detail.<br>See <a href="/pages/o4NY6lZyPCNoaclZ6HRo">Dimensions</a> and <a href="/pages/IHIkgdkTUek3FuHSwWjq#filteraworksheet-searchforitems-filterbydimension">Filter by dimension</a>.</td></tr></tbody></table>

## Nested calculation rows <a href="#nested-calculation-rows" id="nested-calculation-rows"></a>

The Profit and Loss statement created in FS typically includes calculation rows, such as Gross Profit, Gross Profit Margin, and Net Profit. These rows flow through to B\&F by default, along with the other statement rows.

{% hint style="success" %}
If you don't need one or more of these FS calculation rows for B\&F purposes, consider creating a [custom statement](#custom-statements) that doesn't include those rows. Then, when you create the budget, the rows won't exist.
{% endhint %}

In B\&F, you have the option to show *nested* calculation rows in the Main tab of a financial budget, or any of these worksheet tab based on a financial statement: Database, Reference, Balance Sheet, and Cash Flow. This means the budget hierarchy is applied to the calculation rows, so they display as nested rows (just like the category rows) that you can then expand to see the lower-level detail underneath, as in the left image in the table below.&#x20;

This feature is turned off by default, meaning the calculation rows are hidden. Please consider the important notes below before showing calculation rows.&#x20;

To show these rows in the budget, go to the workbook or tab setup and switch the **Nested calculations** setting to **Show**, as in the image on the right image in the table below.&#x20;

| Nested calculations shown in budget                                 | Nested calculations hidden from budget                              |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| <img src="/files/FvX5hK09ZZLXxun7VMSo" alt="" data-size="original"> | <img src="/files/JkQBxu3UZsDoLcXoGwO9" alt="" data-size="original"> |

### Important notes

Nested calculations at each level in the budget hierarchy can sometimes cause issues or inefficiencies:

* **Redundant rows:** Many nested calculations might be unnecessary from a budgeting perspective. This can lead to excess white space and additional rows that contain only zero values.
* **Performance impact:** Budgets with many dimension levels can take longer to load due to the large number of nested calculations. To improve performance, consider hiding these rows (see [Best practices for efficient budgeting](https://docs.phocassoftware.com/budgets-and-forecasts/getting-started/overview-of-key-terms-and-concepts/pages/DzJtZwhIlA8godVUocNp#id-4.-budget-setup-general-tips)).
* **Incorrect totals:** Be careful when referencing totals in a filtered workbook or one with hidden cells due to database restrictions. The totals might not respect the filters, resulting in incorrect or unexpected values when filters or restrictions are changed.
* **Broken references:** Any cell references that point to nested calculations will break if those rows are later hidden. To avoid this, decide whether to keep nested calculations shown (on) or hidden (off) and use that setting consistently throughout the budget.

## Hidden rows <a href="#hidden-rows" id="hidden-rows"></a>

When a budget workbook is created, the B\&F module must know which account and dimension combinations to include in the Main tab. If all possible combinations were included, the Main tab of the workbook would potentially contain many redundant combinations and, therefore, rows. To mitigate this, rows are only created for the combinations present in the baseline stream. All the other combinations are excluded by default. If the budget is missing something you expected it to contain, you can add a [dimension entity](/budgets-and-forecasts/owner-and-administrator/add-more-detail-to-the-budget-or-forecast.md#add-an-entity) or [account](/budgets-and-forecasts/owner-and-administrator/add-more-detail-to-the-budget-or-forecast.md#add-an-account) as applicable.&#x20;

{% hint style="info" %}
Even though some rows are hidden from a budget, any rows populated with values from the Actuals stream are automatically injected into a forecast. This is to ensure consistency between the FS and B\&F modules.
{% endhint %}

## Custom statements  <a href="#custom-statements" id="custom-statements"></a>

In FS, you create custom statements to suit your business needs. When you create budgets in B\&F, they are based on those statements. It's important to understand the impact of making changes in FS  on the budgets in B\&F.&#x20;

### Statements specifically for use in B\&F

It's a good idea to create a custom Profit and Loss statement for B\&F purposes. The uses and benefits of such a statement are as follows:

* Remove total and calculation rows to provide a cleaner view of the data entry rows.
* Remove dimensions and, therefore, levels from the hierarchy so it's easier to drill down into the data entry rows.
* Provide the ability to focus on specific accounts and ignore others. For example, you can set up a workbook to specifically budget for overheads.
* Add custom calculations, insights or validations that you want to use in B\&F but are not required in FS.

{% hint style="success" %}
After you create this statement, you can quickly create the corresponding budget using the [one-click budgeting method](/financial-statements/managing-statements/create-a-budget.md).
{% endhint %}

### Impacts of making changes to dimension groups and account groups

When you create a budget in B\&F, the budget values are stored against the dimension entity and account group names in the underlying financial statement.

If you later make changes to these names (in FS), you'll lose the corresponding budget values. However, those budget values aren't lost forever. As the items still exist in Phocas, you can reinstate the budget values by reverting to the original name.&#x20;

It might take some time to see the impact of your changes, as they are only applied during the next database build.

{% hint style="success" %}
[Publish your budget](/budgets-and-forecasts/owner-and-administrator/publish-a-budget-forecast-or-other-worksheet-tab.md) before you make any changes to the underlying financial statement. This ensures you have a copy of the original budget to fall back on in case of any missing budget values.
{% endhint %}

#### Example 1: Renaming account groups in a statement

Suppose that in a Profit and Loss statement, you have an account group called *Sales*. When you create a budget based on that statement, you’ll see the Sales group in the worksheet. If you later change the name of that group to *Revenue* (see [customize account groups](/financial-statements/managing-statements/customize-a-financial-statement/customize-groups.md) in FS), you’ll lose your budget values against the Sales group. The Sales group is no longer displayed in the budget because you've broken the connection between that dimension entity in FS and B\&F.

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

To get the Sales group back into the budget, change its name to what it was originally.

#### Example 2: Renaming entities in dimension groups

As in example 1 above, if you rename a dimension entity (see [Manage dimension groups](/financial-statements/managing-statements/manage-dimension-groups.md) in FS), that item will no longer be displayed in the budget in B\&F. In the example below, changing the name of the dimension entity assigned to the Smarter Auto AUS Trading Entity will result in that trading entity being missing from the budget. Again, you can get it back into the budget by reverting to the original dimension entity name.

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


---

# 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/getting-started/overview-of-key-terms-and-concepts/relationship-with-the-financial-statements-module.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.
