Add a budget file to a financial database

User permission: Financial Statements > Manage Custom Statements and Administration > Databases and Sync

This page outlines how to manually add a budget to a financial database for use in Financial Statements. If you want to add a budget for use in Analytics, see Add a budget file to a non-financial database (easy budget upload).

If you have the Budgets & Forecasts module, you can publish your budget to a stream from there, avoiding the need to follow this process.

Adding a budget file to a financial database involves multiple steps in different places, as illustrated in the following diagram.

Watch this video of the process


1. Get the raw data

Export the raw data from the underlying database into a Microsoft Excel file. The data might come from Phocas, your ERP system or another source.

You can download your current data (actuals) from Phocas and use that as a template for your budget file, as it contains the required data structure and format.

Watch this video to learn how to create a Phocas-friendly template

2. Prepare the budget file

Prepare the data in the budget file according to the requirements outlined below, to ensure it is in the correct format for uploading to Phocas.

Required data structure

Structure the data in the budget file in either of these two ways:

  • A table with dates along the top (this is the structure of the template).

  • A list of values with a Date column.

Required data

The budget file must contain the following data, in the specified format (expand the sections to view the details):

General Ledger account code
  • The account must be in code format, such as 11003, as this is what is used to map your data to the database.

  • You can also have the name of the account, such as Sales, for your own information purposes.

  • The account codes should be applicable to the statement type. For example, in a Profit and Loss budget file, you must not have any Balance Sheet account codes and vice versa. If the file contains account codes from another statement type, you can either remove that data from the budget file before you upload it in Designer or filter out that data after you upload the file in Designer. If you select the latter option, you should have a column in the budget file that identifies the financial statement applicable to each row of data. You can then apply a filter to that column in Designer.

Date

The dates must be in one of the following formats:

  • YYYY-MM-DD for example, 2022-10-27

  • yyyy-MM-dd HH:mm:ss for example, 2022-10-27 09:26:01

  • MMM-yyyy for example, Oct-2022

  • MMM yyyy for example, Oct 2022

  • MMMM-yyyy for example, October-2022

  • MMMM yyyy for example, October 2022

  • MMM-yy for example, Oct-22

  • MMM yy for example, Oct 22

  • MMMM-yy for example, October-22

  • MMMM yy for example, October 22

If you are using a full date (the first two examples below), the date should be the first day of the period. For example, for a May budget, the date is 2022-05-01.

Value
  • In this context, the values are the movements in the account balance for the period, such as day, week or month. The values must NOT be the year to date or life to date of the account balance.

  • In a Balance Sheet budget file, the values also include the opening balances for the budget period. The budget Profit and Loss must be included within the Retained Earnings account, so the Balance Sheet file balances.

  • The values must follow the standard accounting convention, whereby: Revenue, Liabilities, and Equity are negative values. Use a negative sign and remove the commas, for example, -1000.00. Expenses and Assets are positive values. Remove commas, for example, 1000.00. Note: You can use the Reverse sign checkbox later within your financial statement setup. You can also use the Inverse value option, which is available in your database setup.

  • The upload file cannot contain formulas, so if you use formulas to calculate the budget values, copy and paste special > values to remove the formulas.

  • It is possible to have multiple measures, such as local value and reporting value, but you add these later in Designer. See Create a calculated measure.

Recommended data

You might need to add other dimensions to your file, depending on your database setup. These other dimensions, such as Country, Department and Cost Centre are for analysis purposes.

Whereas these instructions involve using one file, you can have data in multiple files and add all those files to one stream (dataset) for your budget.

3. Save and close the budget file

Save the budget file in CSV (preferred) or XLXS Data format, then close the file.

4. Upload (or sync) the budget file

Open Designer in Phocas, then either upload or sync the file (see Get your data into Phocas). Either way, ensure you select the File has header row checkbox, to enable Designer to recognize the file as a budget file.

If you are creating a Balance Sheet budget, you need to upload the opening balances in addition to the budget file. This data can be in the same file or a separate file.

5. Add (connect) the budget file to a stream

Add the budget file to a budget stream in the finance database design, so you can view the budget data via that stream in the Financial Statements module.

  • For Profit and Loss and non-financial budget files, you can either create a new stream or use an existing budget stream.

  • For Balance Sheet budget files, you are likely to need a new stream for each budget period, as your opening balance position will have changed.

  1. In Designer, click the New Stream tab.

  2. Click the Edit button in the new stream then:

    • Enter a more suitable name for the stream, such as P&L Budget 2023.

    • If you're adding a Balance Sheet budget, select the Balance Brought Forward check box. Otherwise, the budget will be treated as a Profit and Loss budget.

    • If you are adding a non-financial budget, select the Variance Stream check box. If you do not do this, the non-financial data will display in the Current column rather than the Budget column.

    • Click Save.

  3. Expand the data sources panel on the right, locate the budget file, and drag it into the stream’s Drag Here box.

    • Designer recognizes that you are loading a budget-type file and displays a message to that effect. Click Yes.

    • Designer converts the budget data into the required format and displays it in the new stream tab with some notable differences. Firstly, the value column in your source data displays as the Measure column. Secondly, regarding the date, if your source data had multiple date columns in the header row, Designer unpivots the data and displays all the dates in one Moment column. If your source data had all the dates in one column, Designer retains that column but changes the header to Moment.

6. Map the budget data

Map the data in the budget file to the corresponding elements in the database.

The minimum mapping requirements are as follows:

  • General Ledger account code → Account

  • Value → Measure > Value

  • Moment (date/period) → Date

You can also map other dimensions to their corresponding dimensions, as applicable.

7. Save and build the database

Save your design changes and build the database to apply those changes. You can either build the database now or schedule a build for later.

8. Create the budget package

Add the budget stream(s) to a budget package in the Financial Statements module. See Manage budgets to learn more about this.

When you create the budget package, the Cash Flow budget is automatically derived from both the Profit and Loss budget and the Balance Sheet budget.

9. View the budget

After you add the budget stream to a budget package, you can view the budget data in the Budget column in the Financial Statements module. Depending on your setup, you might need to change the budget dataset, add the Budgets column and change the budgets period before the budget data displays in the grid.

Last updated