> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enhanza.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Forecasts

> Keep your forecast in your own Google Sheet, connect it to Enhanza and check that every tab loaded.

Your forecast stays in a Google Sheet you own. Enhanza reads every tab whose name starts with `enhanza_`, loads it with your workspace's scheduled sync and compares it with your actual figures for closed periods. Until reports show the comparison, read it in [Metabase](https://docs.enhanza.com/external-bi-tools/metabase.md) or the BigQuery dataset your [external BI tools](https://docs.enhanza.com/external-bi-tools/overview.md) use.

## Connect a forecast Sheet

> [!NOTE]
>
> Owners and Managers can connect a Sheet. The workspace needs a connected [business system](https://docs.enhanza.com/connectors/overview.md) to compare the forecast with.

1. Go to `Data Sources`, click `Connect Data Source` and choose `Google Sheets forecast`.
2. Click `Open template` and make your own copy. Fill in its `enhanza_` tabs ([Set up a forecast tab](#set-up-a-forecast-tab)).
3. In Google Sheets, click `Share` and add `forecasts-reader@enhanza.iam.gserviceaccount.com` as Viewer.
4. Copy the Sheet's link from your browser's address bar and paste it into the form.
5. Click `Connect Sheet`.

Enhanza checks that it can open the Sheet, starts its first load and opens the Sheet's page. The first load takes a minute or two.

You can connect as many Sheets as you like, and they don't count toward your plan's data sources. To use a different Sheet, disconnect the old one and connect the new one.

## Set up a forecast tab

Each tab holds one forecast. Its name starts with `enhanza_`, for example `enhanza_pnl_2027`. The settings go in fixed cells and the data starts at row 6:

| | A | B | C | D |
| - | - | - | - | - |
| 1 | Measure | PnLAmount | | |
| 2 | TimeGrain | month | | |
| 3 | Dimensions | Account | | |
| 4 | Currency | SEK | | |
| 6 | Period | OrganisationNumber | Account | Amount |
| 7 | 2027-01 | 5568341753 | 3010 | 100000 |

* *Measure*: what the forecast plans, from the table below.
* *TimeGrain*: `month`, or `week` where the measure allows it.
* *Dimensions*: one or two of the measure's dimensions, comma-separated.
* *Currency*: one currency code for the whole tab.

The data columns are `Period`, `OrganisationNumber`, one column per dimension and `Amount`, in any order. `Period` is `2027-01` for a month, and `2027-W10` or the Monday's date for a week. Amounts follow your P\&L's signs: revenue positive, costs negative.

| Measure | Time grains | Dimensions | Compared with |
| - | - | - | - |
| `PnLAmount` | month | `Account`, `AccountGroup`, `CostCenter` | Your P\&L |
| `InvoicedSalesValue` | month, week | `SalesRepGroup` | Your invoiced sales |

`AccountGroup` and `SalesRepGroup` use your groups' names in the [Data Organizer](https://docs.enhanza.com/data-organizer/overview.md).

## Check a forecast

`Data Sources` lists each Sheet with your other data sources. Its state shows under `Last Sync`:

| State | Meaning |
| - | - |
| `Loaded` | Every tab loaded. The time is when Enhanza last read the Sheet. |
| `N tabs rejected` | A tab's latest change failed the checks. Reports use its last loaded version. |
| `No enhanza_ tabs found` | The Sheet has no tab whose name starts with `enhanza_`. |
| `Not shared with Enhanza` | Enhanza can't open the Sheet. Share it again (step 3 above). |
| `Sheet not found` | The Sheet was deleted, or its link no longer works. |
| `Waiting for its first load` | The first load hasn't finished yet. |

Click a Sheet to see each tab: what it plans, when it last loaded and, for a rejected tab, every error in it.

After you fix the Sheet, click `Load now` on its page, or in its row's `⋮` menu, to load it without waiting for the next scheduled sync. While the Sheet or all your data sources are syncing, `Load now` is greyed out until that sync finishes.

## Disconnect a Sheet

On the Sheet's row in `Data Sources` or on its page, open the `⋮` menu and click `Disconnect Sheet`. Its forecast is deleted from Enhanza a few minutes later and drops out of every comparison. Your Sheet itself stays as it is.

## Troubleshooting

### A tab shows `Not loaded: your last change was rejected`

The tab's latest version failed the checks, so Enhanza keeps using the last version that loaded.

1. Fix each error listed under the tab, such as a missing column or an amount that isn't a number.
2. Click `Load now`.

### `This is an Excel file opened in Google Sheets`

Enhanza reads Google Sheets only, not Excel files stored in Google Drive.

1. In the file, click `File` > `Save as Google Sheets`.
2. Connect the new Sheet's link.

### `Google Sheets forecast` isn't in the list

Enhanza offers it once the workspace has a business system on its new sync engine. Connect your business system first. If you have one, your workspace still syncs on Enhanza's previous engine: email [support@enhanza.com](mailto:support@enhanza.com) to move it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.