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 50 Next »


In Phocas, period types define the core increments of time that allow users to analyse their data, forming the basis of defined periods. The default period types are months, days and years. 

Administrators with the 'period types' profile option ticked can add other period types such as quarters or weeks. If you have this permission you can set a new period type by manually entering date ranges or importing a file containing the start and end dates for each period. You can also add a period type based on synced data.

To view, add and edit period types select Administration > Period types.

Manually add date ranges

Step 1. Choose New, name the new period type (in this example 'Quarter') and Save

This new period type will appear in the list of period types.

Step 2. Define each moment of your new period type. To do this, select the period type you just created and choose Add.

In the dialog that opens, enter a name, and the required date range and Save.

In this example we've repeated this step for each of our 4 quarters, as shown below.

Quarter 1Quarter 2Quarter 3Quarter 4


Step 4. Once complete, you can review all your moments in a list, as shown. This period type will now be available in the date dropdown in the Designer tool.  


Note that you can not enter dates that overlap with an existing period type. If you try to do this, you will see a warning, allowing you to adjust your dates. 


Import a file containing dates for new period type

Step 1.  Select Administration > Period types.

Step 2.  Choose New, name the new period type (in this example, Weeks) and Save.  This new period type will appear in the list.

Step 3.  Upload the file that contains details of your new period type.  To do this, select the period type you just created and then choose Import.  You can download the file used in this example here; it is similar to the screen shot below.  


Step 4.  Set the date format to match that of the imported file (for the screen shot above we'll need to choose dd/mm/yyyy) and Upload.

Important note about file format

  • The file must be a .txt file with the columns Name, Start Date, End Date and Year in that order with no headings, as per the image below. 
  • The Name must be unique.  Although in reality there might be a Week 1 every year, you'll need to name your moments individually. For example, Wk1-2016, Wk1-2017, etc.
  • Data in the Year column must be 4 numbers only.  If your moment spans a change in year, it is recommended to choose the year that matches the Start Date.

Select new period type in Designer

Once you have created a new period type, it becomes available for selection in Designer

Add a sync period type

Once data is synced you can add a period type based on this synced data.

Choose New and tick 'Is Sync Period Type'.

Select a Sync Source from the dropdown list. Once you select a source, a list of Sync Item becomes available.

Note that the Sync item must have four columns in this order: Name, Start, End, Year.

  1. Name (text)
  2. Start (date time)
  3. End (date time)
  4. Year column must be an integer.

Select from the list and Save. Once you save, the moments are populated.

Notes

  • The moments within a Period Type linked to a Sync Item can only be altered by re-syncing the Sync Item.
  • Administrators with permission can import moments from such a Sync Item against any Period Type that's not linked to a Sync Item. The import overwrites any existing moments against the Period Type.
  • When the Sync Source is updated, the period type is also updated. The moments are purged and then the sync rows are loaded.



  • No labels