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
  • Change the name and owner and other general settings
  • Manage user access and restrictions for a database
  • Set defined periods for a database
  • Manage default database restrictions
  • View and delete custom properties
  • View the database history
  • Generate a database report
  • Clone a database
  • Create or modify a database design

Was this helpful?

  1. Administration

Databases (Administration)

Manage various aspects of your Phocas databases, such as user access, restrictions, and defined periods.

PreviousWorking daysNextSync Sources

Last updated 3 months ago

Was this helpful?

User permission: Administration > Databases

In the Phocas menu, click Administration > Databases. The Databases page lists all your Phocas databases in a grid along with details about each one. Expand the section below to learn more.

Database details
  • Name: The name that is generated automatically when a database is created. This can't be changed and is not displayed to users.

  • Display Name: A user-friendly name added by the user who created the database. This is displayed to users.

  • Status: The current status of the database, which could be one of the following:

    • Available: The database is available and contains the latest available information.

    • Queued: The database is waiting to be built.

    • Sync pending: Typically this means Sync is running. If the database has already been built, it will be available but may not contain the latest data. Pending can in some cases indicate that Sync has failed.

    • Building: A database build is underway.

    • Failed: The most recent build failed. The database will still be available but may not contain the latest data.

    • Unavailable: The database is missing or can't be accessed.

  • Is Suspended: This indicates where builds on a database have been temporarily suspended due to lack of use. As soon as a user accesses the database they'll see a notice and a new build will start.

  • Owners: The user who created the database or was added as an owner. Owners can access the underlying sync source’s data.

  • Database type: The type of database, which is either default (operational or non-financial) or financial.

  • Last Build: The time and date of the most recent build.

  • Last verified

  • Schedule: The frequency of the build.

  • Next Build: The time and date of next scheduled build.

  • Min Year: The year of the earliest transaction date in the database (values are read from the first stream in the database).

  • Max Year: The year of the most recent transaction date in the database.

  • Has Default Restriction: Shows 'True' if the database has a default restriction. See Manage access to data for more information.

  • Solution: If the database was installed as part of a pre-built 'solution', the name of the solution will appear in this column. Solution-based databases can not be edited.

  • No. Users: The number of users currently assigned to the database.

  • Version: The version of Phocas that was in use when the database was built.

  • Size (MB): The sum of MDF and LDF files for the database.

On the Databases page, click the database name (blue link) to open the database settings page for that database. The settings are organized into the following tabs. Unavailable databases only have three tabs: Database, Build Logs and Usage.

  • Usage tab: View a graph illustrating the usage of the database over time.

Change the name and owner and other general settings

On the database settings page, the Databases tab opens by default. Here you can take the following actions:

  • Change the Display Name of the database (the name that users see).

  • Change the database Owners. Use this setting to prevent unwanted changes to a database design, as only an 'owner' can edit a design. Select the user(s) from the dropdown list, which displays all administrators who have permission to access databases.

Note about the Month to Date setting

There are month to date options on both this database settings screen and the user profile screen. These work in conjunction to determine user ability to use month to date. Different combinations of these settings yield different results:

  • Month to Date NOT selected in both database and user screen: Month to date is not available to the user.

  • Month to Date selected in database but NOT selected in user screen: Month to date is turned on and can't be turned off by the user.

Manage user access and restrictions for a database

Changes you make here override any default database restrictions (see next section) that might have been applied to the database.

On the database settings page, click the Users tab and review the current access and restrictions:

  • If a period displays next to a user’s name, it means the user has access to the database. If no period displays (a red outline displays on the period box), it means the user does not have access to that database.

  • If the lock icon (Restrictions button) next to the period is grey, it means no restrictions have been applied to the database. If a black button displays, it means one or more restrictions have been applied.

Locate the user you want to update, then manage the access and restrictions as required:

  • Remove access to the database: Select the blank option from the dropdown list.

Repeat the above steps to manage the access and restrictions for other users, then click Save > Close.

Set defined periods for a database

Watch these Phocas Academy videos:

You can determine what defined periods (date ranges) are available for use in a database. In Analytics and Financial Statements, this correlates to the defined periods that display in the Period menu. While users can add their own user-defined periods, if a particular period is required by several users, it is better to add it as a defined period at the database level. This makes the period available across the database, so all users can access it from the Period menu.

The Month to Date option in Analytics only works for defined periods based on the Month period type.

On the Databases page, click the database name (blue link) to open the database settings page, then click the Defined Periods tab. This tab displays the defined periods available for the database. Here you can take the following actions:

Add a built-in defined period

The simplest way to assign defined periods to a database is to select from a list of common periods built into Phocas.

On the Defined Periods tab, click Add and select the defined period you require.

Edit a defined period

On the Defined Periods tab, click the period name (blue link) to open its setup window. Then in the Defined Period window, make your changes and click Save.

See the Add a new defined period steps below for more information.

Add a new defined period

If none of the built-in defined periods meet your needs, you can add your own defined period.

  1. On the Defined Periods tab, click New.

  2. In the Defined Period window, enter the name of the period.

  3. (Optional) Select the Reversed checkbox. By default, time units (years, months, weeks or days) display in the grid in chronological order from left to right. To avoid users having to scroll across to the most recent time unit, you can reverse the display order.

  4. Select the Start and End dates for your Current period. Often a fixed set of dates is of limited use, so you have the following dynamic date options. The use of a dynamic date is a simple way to get a date range that updates each year and it saves you from having to update dates each new calendar or financial year.

    • Dynamic month option (available when defining a date range based on months) - Select either a fixed month or one of two dynamic options: Most recent (the past 12 months) or Second most recent (the 12 months before that).

  5. Review the Start and End dates for the Previous period. These dates are automatically set by Phocas based on what you selected for your Current period. If they are not correct, change them using one of the same methods above.

  6. Click Save. Your newly defined period is added to the list and also becomes available to users in the Period menu when they open the database.

Delete a defined period

On the Defined Periods tab, use the dropdown list on the top right to filter by period type, then select the row of the defined period you want to delete. Click Delete > Yes.

Manage default database restrictions

Typically, database restrictions are applied on a user-by-user basis, so if a user doesn't have a restriction, it implies they have access to all data items (streams, measures and dimensions) in the database. Default database restrictions allow that logic to be reversed, so any user without a specific restriction will get the default restriction from the database. Instead of applying a user restriction to limit access, it is used to increase access. This allows a secure by default way of setting up a database.

On the database settings page, click the Default Restriction tab, then configure the restrictions (see examples below) and click Save > Close.

Create a default restriction on streams

In the example below, a default restriction has been created to allow access only to the main stream, which is Sales. All users without a specific restriction will only be able to access the Sales stream. To grant a user access to the Budget stream, you would add a user restriction.

Create a default restriction on measures

You could set a default restriction on measures to allow access only to the Value and Quantity measures. This would mean that all users would be prevented from seeing Profit and Margin figures, unless specifically granted that access. For example, you would grant access to the Profit and Cost of Sales measures for managers and directors by adding a user restriction.

Create default restrictions based on user settings

A further refinement to the regular way of applying database restrictions is to base a dimension restriction on a user's settings, instead of an absolute, fixed value. By replacing a fixed value with one of the two user variables {{user:group}} or {{user:territory}}, the appropriate setting value from the user will be applied when they sign in to Phocas. This allows the restriction to be created at a database level, but applied per user. In the screens below, a default restriction has been set on the database using the territory value from the user. In the second screen, the users have multiple territory (or State) codes assigned to them, which are used when they access the database. Note: Semi-colon separated values are used when specifying multiple allowed values.

Significantly for this type of restriction, a mistake or a missing territory or group value on the user will result in no data being exposed. This mechanism provides a 'secure by default' way of setting up the system.

Troubleshooting

View and delete custom properties

You can view the list of these custom properties for each database.

On the database settings page, click the Custom Views tab. This tab displays a list of all custom properties that have been created in the database, along with who created them.

You can delete these custom properties, if required: Select the property and click Delete. This permanently deletes the property from the database.

View the database history

On the database settings page, click the Build Logs tab: This tab displays a record of the database that builds.

Generate a database report

A database report provides a printable summary of the design and configuration of a database.

On the Databases page, select the database row and click More > Report.

The report opens in a new browser tab and displays the following information:

Section
Description

Database Info

Basic information about the database, including its physical SQL Server name and the internal ID that Phocas uses for referencing the database externally. To directly link to a database from elsewhere, you just append this ID to the URL: http://localhost/Query/Database/{ID}

Defined Periods

A list of the defined periods in the database, with its period type and period range.

Dimensions

A list of the dimensions in the database, and the number of records in each as well as all of the properties they contain.

Streams

A list of the streams in the database, with their min and max transaction dates.

Measures

A list of the measures in the database.

You can collapse/expand the sections using the minus/plus buttons next to the section headings.

You can print the report using your browser's standard Print function.

Clone a database

  1. On the Databases page, select the database you want to clone, then click More > Clone.

  2. Enter a Display Name for the new database. This is the name users see.

  3. Select the items you want to copy (clone) into the new database, then click Save.

Description of database items...

Defined Periods: All the defined periods are copied to the new database.

Users: All existing users and their current default period and user restrictions are copied to the new database. This option only becomes available when the Defined Periods option is selected.

Default Restriction: If the original database has a default restriction, it is copied to the new database.

Folder Favorites: All global favorites, stored in folders against the source database, are replicated in the new database.

Personal Favorites: All personal favorites created by users in the original database are replicated in the new one.

Design: You get very different results, depending on whether you select this option or not. If you are cloning a financial database, you must select this option to clone the design.

If you clone the design:

  • A physical copy of the SQL server database is created, which includes a copy of the original database design (setup).

  • No link is retained between the original and clone database. The clone becomes a completely separate database.

  • You can proceed to modify the design of the new database in Designer.

If you do NOT clone the design:

  • Only a copy of the application database, not the physical SQL server database, is created.

  • A link is retained between the original and clone database, so if you edit the original, the clone will also be edited. Because the cloned application database refers to the same physical database, both databases are updated at the same time when the physical database is built.

  • This option allows you to apply sophisticated user access restrictions, where the same physical database is made accessible to a user multiple times but with different levels of restriction.

  • You cannot modify the design of the new database in Designer.

Create or modify a database design

: Change the name and owner and the Hide Total, Month to Date, and Show Net Zero settings.

: View a list of users who can access the database, and manage individual user access and restrictions.

: Set defined periods for a database.

: View the custom properties in the database.

: Manage the database's default restrictions. These are database-wide restrictions that apply to all users who can access the database.

: View the history of the database that was built in Designer.

Change the following settings: Hide Total, Month to Date and Show Net Zero. These settings all relate to the Options menu that users see in the Analytics module. See for information on what each one does.

Month to Date NOT selected in database but selected in user screen: Month to date is OFF by default, but the user can turn it on using the menu.

Month to Date selected in both database and user screen: Month to date is ON by default, but the user can turn it off using the menu.

This section outlines how to manage access and restrictions for a database, for one or more users, via the Databases page. To do this for an individual user via the Users page, see . For other information, see the page.

Give access to the database: Select a period from the list of defined periods that have been set up for the database. This action grants the user access to the database and the period you select becomes the default period that is applied when the user opens the database. Learn more about , a core concept in Phocas.

Add or update restrictions: Click the Restrictions button (lock icon) next to the period dropdown list, then configure the restrictions and click Save. See the examples in the section, as the process is similar.

Periods are a core concept in Phocas. Read the to learn more about the Period menu in Phocas and the different types of periods.

(financial year to date)

Defined periods are based on . Therefore, you might need to add a new period type before adding a defined period. For example, if you want to add a defined period for the Current Financial Week, you must first add a period type for Financial Weeks to the database.

Select the period type (time unit) upon which the defined period is based. Typically the period type options are Year, Month or Day but other types might be available, such as Quarter and Week, depending on whatever has been added to your Phocas site. See to learn how to add new period types.

Offset dates - Define a date range based on today's date, so that the data continues to update. The defined period becomes a dynamic date range, such as Year to Date or Last Six Months. Selecting the Offset checkbox converts the date range into a number. For example, if using the Month type, an offset of zero means the current month, and an offset of -2 means two months ago. See for more information and examples.

Special offsets (available when defining a date range based on days) - Select from one of four matches (First Day, Last Day, Match Today or Match Yesterday) and offset that match against a chosen month. See for more information.

You can manage the default restrictions that apply to all users who have access to a database. For other methods and more information on applying database restrictions, see the page.

If your applied restrictions don’t look or behave as expected, please . We are aware that the application of restrictions differs slightly depending on where or how you apply them. We are working on making this more intuitive and consistent.

Phocas Analytics users can to a database via the Properties menu > Custom option.

The creation of new databases and the modification of existing database designs is an advanced administration task that requires additional user permissions. These tasks, along with changing a database's build schedule, are done in the .

Get more options for viewing data
options
options
Manage a user's database access and restrictions
Overview of access to data
periods
Periods page
Add a defined period using Special Offsets (days)
Add a defined period to the Periods menu
Add a defined period using Dynamic Month option
period types
Period types
Use offset dates
Use offset dates
Overview of access to data
contact our Support Team
add their own custom properties
Designer module
Database tab
Users tab
Defined Periods tab
Custom Views tab
Default Restrictions tab
Build Log tab
Manage default database restrictions