LogoLogo
More help and supportPhocas website
  • Home
  • Getting started
    • Navigation
    • Homepage
    • Data access
    • User licenses, profiles and permissions
    • Account settings
    • Databases
    • Periods
      • Offset dates
      • Default period for a database
    • Sharing and folders
      • Share a dashboard, favorite, or alert
    • Subscriptions
  • Analytics
    • Take a tour of Analytics
    • Work with the grid
    • View a summary of the data
    • Customize your view (Analytics)
      • Change the mode
        • Period mode
        • Period Variance mode
        • Period Stream mode
        • Moving mode
        • Stream mode
        • Total mode
        • Transaction mode
        • Matrix mode
        • Matrix Variance mode
        • Matrix Share mode
        • Variance mode
        • Search mode
        • Market mode
        • Custom mode
      • Change the properties (Analytics)
      • Change the measures (Analytics)
      • Change the stream
      • Use the activity filter
      • Change the data format
      • Change the period (Analytics)
    • Drill down into your data (view transactions)
    • Filter data (use dimensions)
    • Select data (Analytics)
    • Focus on data (Analytics)
    • Copy or export data
    • Search for data
      • Perform a basic search
      • Perform an advanced search
      • Search for similar or comparative data (right-click filter)
    • Add levels to the grid (grid nesting)
    • Compare data with Matrix mode
    • Get more options for viewing data
    • Visualize your data in a chart
      • Bar and Column charts
      • Combo chart
      • Pareto chart
      • Waterfall chart
      • Line chart
      • Area and % Area charts
      • Pie and Donut charts
      • Bubble chart
      • Radar chart
      • Gauge chart
      • Bullet chart
      • Summary and Ring Summary charts
      • Map charts
      • Configure the chart options
      • Select and focus on a chart segment
      • Export a chart as an image
      • Use the chart legend
    • Save favorites and add to dashboards (Analytics)
    • Reset data
    • Phocas AI
    • Flex Modes
      • Switch modes
      • Filter data (Flex Modes)
      • Apply conditional formatting
      • Add levels to the grid (Flex Modes)
      • Manage columns (Flex Modes)
      • Save and share a favorite (Flex Modes)
      • View your data in a chart (Flex Modes)
  • Financial Statements
    • Take a tour of Financial Statements
    • Overview of access to financial statements
    • Customize your view (Financial Statements)
      • Change the properties (Financial Statements)
      • Change the measures (Financial Statements)
      • Change the period (Financial Statements)
      • Change the current data
      • Change the budget data
      • Change the columns
      • Change the style
      • Change the rows (activity filter)
    • Filter the financial information
    • Select and focus on data (Financial Statements)
    • Copy or export financial information
    • Add a level in a financial statement
    • View financial information in a matrix (change column groups)
    • Add and view comments (Financial Statements)
    • View transactions (Financial Statements)
    • View financial information in a chart
      • Create a Pie and Donut chart (Financial Statements)
      • Create a Value card
      • Export a financial chart widget as an image
    • Save and share favorites (Financial Statements)
    • Add financial analysis to a dashboard
    • Manage financial statements
      • Overview of financial statements and dimensions
      • Create a financial statement
      • Delete a financial statement
      • Customize a financial statement
        • Rename a financial statement
        • Reorder a financial statement
        • Customize account groups
        • Customize calculations
          • Functions for Profit & Loss calculations
          • Formulas for financial ratios
        • Customize headings and spacers
        • Set the revenue row in a Profit & Loss statement
        • Customize columns
        • Customize a Cash Flow statement
          • Common account mapping for Cash Flow statements
        • Rebuild the database
      • Set the financial year end date
      • Map the Retained Earnings account(s)
      • Restrict access to accounts
      • Manage budget streams (Financial Statements)
        • Create a budget (Financial Statements)
      • Use statistical streams
      • Use multiple currencies
      • Manage dimension groups
      • Map categories from your Chart of Accounts
  • Budgets & Forecasts
    • Overview of key terms and concepts
      • Budgets versus forecasts
      • Users and data access
      • Relationship with the Financial Statements module
      • 3-statement budgeting
      • Filtering methods
      • Demand planning
      • Loan repayments
    • Take a tour of Budgets & Forecasts
      • Explore the budget workbook
      • Explore the forecast workbook
      • Explore the Balance Sheet and Cash Flow budgets and forecasts
    • Customize your view (Budgets & Forecasts)
      • Filter a worksheet (search for items)
      • Group period columns
      • Use layouts
    • Use session filters
    • Edit values in a worksheet
      • Open workbook notes
      • Use keyboard shortcuts
      • Copy and paste values
      • Use comparison rows
      • Use sum and working lines
      • Use formulas
      • Spread totals
      • Revert to the baseline values
      • Edit the Balance Sheet budget
      • View and use headcount data
    • Refresh a workbook
    • Use workflows
      • Contribute to the workflow
      • View the workflow history
      • View workflow comments
    • View budget information in a chart
    • Open baseline, comparative, or opening balance data
    • Review the budget or forecast
      • Add and view cell comments
      • View and restore the cell history
      • View the audit log
      • Compare actuals, budgets and forecasts
    • Export a workbook or worksheet tab
    • Manage budgets and forecasts
      • Create a budget workbook
        • Filtered budget or forecast
        • Multi-currency budget
        • Unclassified data
        • Period types in budgets
        • Additional measures for driver-based budgeting
      • Create a forecast workbook
      • Clone a workbook
      • Import a budget or forecast
      • Edit the workbook setup
      • Roll a budget forward
      • Add more detail to a budget or forecast
      • Add worksheet tabs (drivers)
        • Balance Sheet and Cash Flow tabs
        • Manual Entry tab
        • Database tab
        • Headcount tab
          • Headcount tab FAQs
        • Reference tab
        • Lookup tab
        • Allocations tab
        • Scratch Pad tab
      • Manage worksheet tabs
      • Add notes to a workbook
      • Customize the format of measures
      • Manage the workflow
      • Manage user access and notifications
      • Publish a budget, forecast or other worksheet tab
      • Fix the baseline in a budget
      • Delete or restore a workbook
      • Delete a stream (Budgets & Forecasts)
      • Troubleshoot performance issues
  • Rebates
    • Overview of rebates
    • Get started with Rebates
    • Projects
    • Rules
      • Parent-child rebate rules
      • Rebates calculation methods
      • Yearly rebates
      • Quarterly rebates
      • Monthly rebates
      • Whole rule period rebates
      • Retrospective rebates
      • Pro rata rebates
    • Calculations
      • Run a calculation
      • Schedule calculations
      • View calculation results and transactions
      • Post calculation results
    • Seasonal calendars
    • Rebates analysis
    • Rebates near miss analysis
  • CRM
    • Overview of CRM
    • Agenda
    • Contacts
    • Accounts
    • Leads
    • Activities
      • Microsoft 365 Outlook calendar integration
    • Campaigns
    • CRM analysis
    • CRM administration
  • Favorites
    • Save a favorite
    • Manage favorites
    • Set a favorite as your default view
    • Use alerts
  • Dashboards
    • Use dashboards
    • Create a dashboard
    • Set a dashboard as your homepage
    • Manage dashboards
  • Administration
    • Overview of access to data (Administration)
    • Users
      • Add, update or delete a user account
        • User maintenance form
        • User permissions
      • Create a user template
      • Manage a user's database access and restrictions
      • Manage user passwords
      • Monitor user activity
      • Lock user accounts
      • Impersonate a user
    • Profiles
    • Folders (Administration)
    • Favorites (Administration)
    • Dashboards (Administration)
    • Subscriptions (Administration)
    • Periods (Administration)
      • Period types
      • Working days
    • Databases (Administration)
    • Sync Sources
    • Connectors
    • Configuration
      • Set up SSO
      • Set up SSO with Microsoft Entra ID
    • Logs
    • Designer
      • Modify a database
      • Get your data into Phocas
      • Design a database
        • Create a database
        • Add (connect) data to a database
        • Map data to the database
        • Save your database design
      • Design a financial database
      • Build a database
      • View and revert to older design versions
      • Add a budget file to a financial database
      • Add a budget file to a non-financial database (easy budget upload)
    • Sync
      • Automatically join or split items during Sync (split view)
      • Schedule the sync process
      • Migrate Sync
      • Test the sync process
    • Reserved words and characters
    • End of year maintenance tips
  • OTHER INFORMATION
    • File upload
    • Encrypt (share secrets)
    • Glossary
    • Release notes
      • Analytics release notes
      • Financial Statements release notes
      • Budgets and Forecasts release notes
      • Rebates release notes
      • Administration release notes
    • System requirements
    • Technical limitations
    • Security information
    • Scheduled upgrade and maintenance periods
    • More help and support
Powered by GitBook

© Phocas Software

On this page
  • Open a database design
  • Rename an item
  • Reorder items
  • Change the data type of an item
  • Group properties
  • Customize dimensions
  • Hide the code in dimensions
  • Group dimensions
  • Include a dimension group as a property
  • Customize measures
  • Change the format of measures
  • Create a calculated measure
  • Customize period types
  • Set the period types for a database
  • Configure the moving period count for each period type
  • Set a stream as Balance Brought Forward
  • Add shortcut links
  • Link to a dimension
  • Link to Rebates
  • Link to a transaction property
  • Add an external link
  • Link to a system setting (advanced administrators only)
  • Modify the general database options
  • Customize activity filter labels
  • Suppress empty dimensions and streams

Was this helpful?

  1. Administration
  2. Designer

Modify a database

Whether the Phocas Implementations team designs your databases or you do it yourself, as time goes on, you might want to modify those designs to meet your business’s needs.

PreviousDesignerNextGet your data into Phocas

Last updated 1 month ago

Was this helpful?

User permissions: Administration > Databases and Sync

You also need to be the .

It's not unusual to go back and make changes, either to add new elements, delete things that are no longer needed or simply make some changes to the name or order of the items.

This page outlines how to customize the database components. Other changes you can make to a database design are covered on other pages: , , and .

  • After you modify a database, you need to save and to apply your changes.

  • Some changes you make in Designer can potentially affect dashboards, favorites, and other items in Phocas that are connected to your database. For example, if you delete the Sales Rep dimension in Designer, this will cause a user's Sales Rep performance pie chart favorite to fail. Therefore, you should take particular care when deleting dimensions, properties, measures, streams, and dates. Renaming items is fine. For example, if you rename the Sales Rep dimension, the user's Sales Rep performance pie chart favorite will still work.

Watch this Phocas Academy video: (covers some of the actions outlined on this page)

Open a database design

Rename an item

Rename dimensions, properties, measures, and streams, to give them more meaningful titles. Be careful not to use any of the .

Click the Edit button next to the item name, then enter a new title (name) and click Save.

Note about measure names and Rebates

In measures, if you are designing a source database for use in Rebates (the database that Rebates will interrogate), some characters must not be used in Measure names, as this can adversely affect rebate calculations. Measure names must only contain the following characters: "_abcdefghijklmnopqrstuvwxyz". Spaces cannot be used.

Reorder items

Change the order in which the dimensions, properties, measures, and streams display in their respective menus in Phocas. By default, items display in the order in which you map them.

Click the item’s Move button, then drag and drop it in the new position.

For example, in the image below, the Budget stream is being dragged from next to Sales across to the right of Orders. This sets it as the third stream in the list in the user's menu.

Note about Map charts
  • Country AUS does not map. Use AU or Australia.

  • Use Due date not Date due.

Change the data type of an item

Change the data type of dimensions, properties, measures, streams, and date (in some circumstances) sections. Changing the data type is particularly helpful for classifying your properties, as the data type can make a difference to the way the data can be analyzed and sorted in Phocas.

Click the Edit button next to the item name, select the required data type from the Type dropdown list and click Save.

The available data types depend on the component:

  • Text: The default data type for dimensions and properties.

  • Number: The default data type for measures.

  • Boolean: Available for properties only. See below for more information about Boolean property types.

  • Date: See Map the date for more information.

  • Paragraph: Available for properties only. Useful if you have a property containing a lot of text, such as a product description, and you want users to be able to view and export it in full. In the Phocas grid, the text is truncated to 100 characters, but users can click items to view the full text in a separate window.

Note about Boolean property type

These are not case-sensitive.

Group properties

Put properties into groups by prefixing the property name with the group name, a dash, and a right arrow (without spaces), like this: Name->

Grouping is handy when you have a large list of properties. For example, suppose you want to group the properties Street, Country, and Postcode into a group named Address. After you add the prefix Address-> to the name of each property, users will see these properties grouped in the Property menu in Phocas.

Click the Edit button next to the property name, then enter the group name prefix and click Save.

Customize dimensions

You can hide the code, create groups, and include a group as a property.

Hide the code in dimensions

In the Dimensions section, click the Edit button next to the dimension name, then select the Hide Code checkbox and click Save.

This feature doesn’t apply when you add levels to the grid (grid nesting). The code is not hidden when you view the nested grid. The Code property always displays in the nested grid because it’s required to link the nested rows together correctly.

Group dimensions

Put your dimensions into groups for analysis purposes. A group can be anything that works for your business, as long as the data exists. For example, you might want to:

  • Group customers into regions or types, or even by which sales rep looks after them.

  • Group products by category and sub category.

  1. In the Dimensions section, click the mapped dimension. The Design tab changes from the default Stream mode into Dimension Mode, where you can arrange your dimensions into groups.

  2. Drag the relevant raw data file from the data sources panel into the Drag here box.

  3. Map the data file:

    • A data box displays to the left of the raw data with a red heading. This represents the data you've already mapped. You need to link your raw data to it. Locate the column that has the matching data and drag it across. The column heading will turn green.

    • To create a dimension group, drag the raw data column on top of the appropriate dimension. For example, drag the Minor Section data file on top of the Product Dimension. It will then appear below, grouped.

  4. Exit Dimension Mode and return to Stream mode: either click the dimension again or click on any blank space in the dimension box.

Include a dimension group as a property

After mapping a dimension group (see section above), click the Edit button next to the dimension name, then select the required property from the Include as Property dropdown list and click Save. The newly created property will be named as per the dimension title.

Customize measures

You can change the format or create your own calculated measures.

Change the format of measures

Determine the default format of a measure that users see when they open the database. Users can overwrite this by customizing the format of their own measures.

In the Measures section, click the Edit button next to the measure name. Then, in the Measure window, either select a predefined format from the dropdown list or select the custom option and enter your own format.

Learn about custom measure formatting

You can manually enter the required format into the box. For example:

  • To remove thousands, enter: #,##0,.00

  • To remove thousands and use K as a descriptor, enter: 0,0,.00,"K"

  • To remove millions, enter: #,##0,,.00

  • To display negative figures in parentheses, enter: #,0.00;(#,0.00);0.00

To specify a prefix, suffix, and/or number decimal places, or turn the thousands separator on or off, click the More options button next to the box.

Use the arrows to move to the settings for the next measure, if required, then click Save when you're finished.

Create a calculated measure

Often, raw data contains only basic measures, such as cost, value, and so on. You can use these measures as the basis of a new calculated measure, such as profit (value minus cost).

  1. In the Measures section, click the green plus button.

  2. Enter a title (name) for the new measure. Note: If you are designing a source database for use in Rebates (the database that Rebates will interrogate), some characters must not be used in measure names, as this can adversely affect rebate calculations. Measure names must only contain the following characters: "_abcdefghijklmnopqrstuvwxyz". Spaces cannot be used.

  3. Enter a mathematical calculation using your existing measures. You can use the usual notation (+,-,*,/), and any of the other non-calculated measures in your expression.

  4. Set the data formatting, if required.

  5. Click Save.

Customize period types

You can set the period types and configure the moving period count.

Set the period types for a database

If you create a new period type, for the new period type to be available to users, you need to add it to the database, then rebuild the database.

  1. In the Date section, click the Edit button at the top.

  2. In the Period Types window, select the checkboxes of the period types you want to make available in the database. Clear the checkboxes of any period types you do not want.

  3. Configure the moving period count for each period type if required (see next section below).

  4. Click Save.

Configure the moving period count for each period type

On a Month period type, this is typically 12 (the default), which will ultimately display what many refer to as a moving annual total. However, you can select any value. For example, if you select 3, it makes the moving mode display rolling quarters instead of years.

For period types other than month, 0 moving periods is the default. Note that in Moving mode, 0 does not mean none. It is more like a starting point, as Moving mode takes the number of moments in your active period, counts back that many moving moments, and then adds those to each column. For example, a setting of 0 when using a period of the Last 7 days displays rolling 7 days but switching to a period of the Last 30 days displays rolling 30 days.

  1. In the Date section, click the Edit button at the top.

  2. In the Period Types window, select the period type and click the More button.

  3. Use the arrows to set the moving period count and click Save.

Set a stream as Balance Brought Forward

Set a stream as Balance Brought Forward to give the transactions an opening balance plus movements. This is typical in a Financial database, where the value in a General Ledger account for a selected month is effectively the sum of all prior transactions. It is also useful with Inventory Movements databases, which also typically have an opening stock 'as set by a stocktake' and adjustments in and out for receipts and dispatches.

Click the Edit button next to the stream name, then select the Balance Brought Forward checkbox and click Save.

Add shortcut links

You can add shortcut internal links that allow users to move from the grid directly to a dashboard, favorite or different database. For example, click on a Sales Rep and open that particular Rep Scorecard dashboard.

You can also add links to an external application. For example, click on a customer to open that customer's account in your ERP system.

In the example below, the Code property displays on the user's screen as a hyperlink in blue text. If the dimension has a single link, clicking the code value will open the link. If the dimension has two or more links, as in this example, clicking the code shows a dropdown menu with all available links.

Link to a dimension

Click the Link button next to the relevant dimension. In the Links window, click the green plus button to add one or more new links, then enter the following details:

  • Name: The name that displays in the grid.

  • URL: The link code. See below for more information. Note there is no validation of the link at this stage.

Syntax for linking to databases, dashboards and favorites

Internal links can be set up using a syntax starting with 'database', 'favourite' (spelt with a 'u') or 'dashboard', as outlined below, followed by name (or ID) and the required query.

Link to another database database:Name|query For example, database:GL|Dimension=Customer&Mode=Variance&Customer=%%

Link to a dashboard dashboard:Name|query For example, dashboard:Customer Score Card|Customer=%%

Link to a favorite favourite:Name|query For example, favourite:Declining Products|Customer=%%

Points to note:

  • If using ID instead of Name, the ID is an identifier displayed as the last part of the URL.

  • Query is typically the name of the dimension you want to filter on, followed by '=%%'. And, if required, the property relating to the dimension.

  • The syntax you enter must use the UK English spelling, which is favourite with a 'u', even if Phocas displays the word spelt in the usual way everywhere else in the product.

  • On the database link, the mode defaults to Period, so it doesn't need to be specified.

  • The names of the databases, favorites and dashboards are case sensitive. If a link doesn't become active, check the spelling.

Click Save.

Link to Rebates

If you have Phocas Rebates, you can link to an individual rebate, so users can open the rebate directly from Phocas. Use the URL /Rebates/Rebate/Index/%%

Link to a transaction property

Click the Link button next to the relevant property. In the Links window, click the green plus button to add one or more new links, then enter the following details:

  • Name: The name that displays in the grid.

  • URL: The link code. Enter the following syntax (placeholders)

Syntax

Link to a property %%property_name%% For example, Value=%%invoice_number%%&AnotherValue=%%duedate%%

Link to other dimension properties within a transaction property link %%dimension|dimension_name|property_name%% (where the word ‘dimension’ is static). For example, %%dimension|Ship To|Name%%

Click Save.

After you rebuild the database, users will see a link similar to those below, which, in this example, would take them to their accounting system.

Add an external link

As well as linking to other Phocas databases, this feature can be used to open external applications and webpages using the same parameter passing method. This is particularly useful when the partner ERP system can be opened using URLs.

The syntax is the same, except for the domain part: https://mywebsite.com/CustomerInquiry?CustomerID=%%

Replace the %% placeholder with the customer code of the selected customer. To pass a property instead of the code, use the syntax %%PropertyName%%

Link to a system setting (advanced administrators only)

Administrators with permissions to view system settings can enter a system setting, for example, to reference a setting that is actually a URL.

To do this, enter the following syntax in the link dialog.

%%setting|setting_name%%

For example, %%setting|DynamicsURL%%

If the setting doesn’t exist then blank is returned. You can also chain many together, such as, %%setting|DynamicsURL%%%%setting|DynamicsSiteName%%

Modify the general database options

The Options button on the top right of the Design screen (next to the Save button) gives you access to these general database options: customize activity filter labels, and suppress empty dimensions and streams.

Customize activity filter labels

Enter your synonyms into the respective boxes, and click Save.

Suppress empty dimensions and streams

Remove dimensions and streams from the front-end view of the database when they do not contain any data. The items remain in the database design but don't display for users when they open the database.

Select the Suppress empty dimensions and streams checkbox and click Save.

Watch the Academy video from 2:13 to 2:17.

The order in which properties are mapped, and their naming convention, affects the results that users see when using the feature in Analytics.

To test mappable properties enter the string into .

Set column headings (known as captions in the options menu on the grid) to default to name only, so users only see the name for the selected dimension. As the code caption is unavailable, users don’t have the option of changing it, for example, to Name and code or just Code.

The following information is for adding groups in Designer. You can also in your Financial Statements module.

Watch the Academy video video from 2:22 to 4:10.

Set a dimension as a property. This dimension property is different from and independent of the transaction properties that you , so they do not display in the regular Properties section in Designer.

Watch the video from 4:08 to 4:20.

When you create a new database, the default (Year, Month and Day) are automatically selected for you. You might want to remove one of these period types or add others. Over time, as your needs change, you can review this list and change the period types that are available to users.

Set how many moments constitute a moving period (as used in ).

Add links to transaction properties so that in , users can click on a property (such as Customer Website, Invoice or even Invoice line) to open an external application at a specific place. For example, clicking on an Invoice line transaction property would open that particular line in your accounting system. These links are only visible to the user when in Transaction mode.

Customize the labels that appear in the Phocas grid. For example, in a Sales database, you might prefer the labels Sales and No Sales to Activity and No Activity, or in a Purchasing database you might want Purchases, No Purchases, and so on.

Design your own database
Map charts (Marker, Circle, and Heat)
https://www.openstreetmap.org
matrix mode
add and manage dimension groups
Design your own database
map to the database
Design your own database
period types
Use Moving mode
Transaction mode
activity filter
Add (connect to) more data files
rebuild the database
Design your own database
reserved words and characters
owner of the database
replace existing data files
image-20240110-224010.png
image-20240110-223154.png
image-20240110-232025.png

Use one of these methods to access a database design:

  • On the Databases page, select the database and click the Design button.

  • On the Databases page, click the blue link to open the database maintenance page, then click the Design button.

then click the blue arrow next to the database name and select Design database.

Open the database
unmap or delete items