Phocas has a new user documentation site. This site will be retired soon.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 40 Next »

A simple method for bringing a budget stream into a database, depending on the format of the file you are uploading, is to take advantage of Designer's ability to automatically detect a budget file and convert it accordingly. This is sometimes referred to as 'Easy Budget Upload'.

To add a budget stream using this method:

  1. Make sure your budget data is in the right format (see below).  

  2. Upload or sync your budget file

  3. Select Admin > Databases and choose the database you want to add a budget to (you'll need the correct permissions)

  4. Select Design to view the database in Designer 

  5. Select New stream and name it (e.g. 'budget)

  6. Locate your budget data from the data items panel on the right, and drag it on top of the 'drag here' box.

  7. Select 'Yes' if asked whether to use this data as a budget item.

  8. Map the appropriate columns in your budget data. Typically, you'll need to map over the top of existing dimensions and measures.  

  9. Build the database (or wait for it to build on its schedule)

  10. View the budget in Phocas by selecting it as a stream, or choosing stream from the mode button.

Required budget format

The easiest format requirements for uploading budgets into Designer are as follows:

  1. The raw budget data must contain only a single measure.

  2. Codes should be used, not names (e.g. Rep007, not Justin Time).

Example of a typical budget in required format

Sales Rep

Region

Jan 2018

Feb 2018

Mar 2018

Apr 2018

Rep007

41

10,000

12,000

10,000

15,000

Rep007

42

5,000

7,000

5,000

10,000

Rep008

41

22,000

22,000

20,000

28,000

(info) Note about custom periods

If the selected database is summarized by a custom period type that isn't aligned with calendar periods, such as a fiscal period, make sure that the date column (YYYY-MM-DD), especially the day of the month, or DD, takes into account the appropriate fiscal period start date. This will ensure your budget stream is summarized using the correct date range.

Example of a typical budget in the required format when using a custom period type such as fiscal period.

Sales Rep

Region

2023-01-01

2023-01-29

2023-02-26

2-23-04-02

Rep007

41

10,000

12,000

10,000

15,000

Rep007

42

5,000

7,000

5,000

10,000

Rep008

41

22,000

22,000

20,000

28,000

Confirm you are uploading a budget file

Phocas will convert (unpivot) this format when you drag it into Designer. That is, Designer will recognise (because the column headers are like dates), that you are loading a budget-type file and ask if you want to process the file as a budget. If you select 'yes', all the dated columns will be changed into a 'moment' column and a 'measure' column.

Column headings

The column headers in the data source must be in one of the following date formats:

Format

Example

YYYY-MM-DD

2017-10-27

yyyy-MM-dd HH:mm:ss

2017-10-27 09:26:01

MMM-yyyy

Oct-2017

MMM yyyy

Oct 2017

MMMM-yyyy

October-2017

MMMM yyyy

October 2017

MMM-yy

Oct-17

MMM yy

Oct 17

MMMM-yy

October-17

MMMM yy

October 17

Note: If using a full date (the first two examples above), then typically the date should be the first day of the period. (e.g. for a May budget, the date required is 2017-05-01).

Header row

Note it is important that you tick 'File has header row' when you upload your file, as shown below.

Once you have the data in Designer, map the value data (the 'Measure' heading) to Measures and map the moment data (the 'Period' heading) to Date.

'Easy Budget Upload' video on the Phocas Academy

Alternative method for uploading a budget file

Depending on how the data in your source file (e.g., csv, Excel, txt file) is arranged, the easy budget upload method may not be suitable, e.g.,  if it contains pivoted data. If that is the case, uploading the file takes a few extra steps - the most important of these will be to check the date format in Designer. See Design a database


  • No labels