Add a budget file to a financial database

Learn how to manually add a budget to a financial database for use in Financial Statements and/or Budgets & Forecasts.

User permission: Administration > Databases and Sync

If you use Budgets & Forecasts:

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


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.

If you have Budgets & Forecasts, you can export a budget or forecast in a flat file format via the Publish feature.

Alternatively, 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.

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.

If you exported a file from Budgets & Forecasts, you must change the dates in the column headers to comply with one of the formats listed above.

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 format, then close the file.

If you use the XLXS format, all worksheets in the workbook will be uploaded and the worksheet names will be suffixed to the file name. While this is useful if you want to upload multiple worksheets, it's not recommended for single (one-sheet) budgets, as it over-complicates the sync item name and makes the mapping process in Designer more difficult.

4. Upload (or sync) the 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.

There are two ways to get your file into Phocas and each requires a different user permission:

  • Toolbox > Upload files: When a budget file is setup in Designer, this method allow users with upload permission to upload an updated budget without having access to Designer. The file must be uploaded under the Shared User Uploads section for it to be available to an administrator in Designer. See Upload a file.

    image-20240611-025335.png
  • Designer: You can either upload or sync the file. See Get your data into Phocas. Ensure you select the File has header row checkbox, to enable Designer to recognize the file as a budget 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. Use the budget file

The next steps depend on whether you want to use the budget data in Financial Statements and/or Budgets & Forecasts.

Financial Statements: View the budget data

User permission: Financial Statements > Manage Custom Statements

You can now view the new budget stream(s) in Financial Statements by itself or add it to a scenario, which is a combination of streams, sometimes called a package of data. In a scenario, the Cash Flow budget is automatically derived from both the Profit and Loss budget and the Balance Sheet budget. See Manage streams and scenarios.

Use the Streams menu to add the budget stream or scenario to the grid. See Change the streams and scenarios.

Budgets & Forecasts: Use the new stream in a budget

User permission: Budgets & Forecasts and Manage Budgets & Forecasts

The new budget stream is available in the Stream list in the Budget, Comparison, and Forecast setups.

For example, if you want to import a budget, you can create a new financial budget workbook in Budgets & Forecasts and select the new budget stream as the baseline data structure.

Last updated

Was this helpful?