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
    • Change the period (Flex Modes)
    • Filter data (Flex Modes)
    • Apply conditional formatting
    • Create a nested view
    • 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 streams and scenarios
        • 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 streams and scenarios
        • 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
        • Best practices for efficient budgeting
        • Filtered budget or forecast
        • Budget by region and branch
        • 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)
  • 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
      • Flex Modes 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
  • [acc]
  • [bal]
  • Average balance
  • Closing balance
  • Balance Sheet account movement
  • [DaysInPeriod]
  • [stat]
  • [avg]

Was this helpful?

  1. Financial Statements
  2. Manage financial statements
  3. Customize a financial statement
  4. Customize calculations

Functions for Profit & Loss calculations

Learn about the inbuilt functions you can use in the Profit and Loss statement calculations.

PreviousCustomize calculationsNextFormulas for financial ratios

Last updated 23 days ago

Was this helpful?

See also .

[acc]

Watch this PUG Training video: (jump to 23.00)

The Account [acc] function references a single account code, allowing you to insert the values of an account, rather than a group, into a financial statement. This function respects the values as displayed on the statement. For example, if the Reverse Sign option is applied to a Revenue group to present values as positive, a referenced Revenue account will also be positive.

There is no account lookup for this function, so you need to have the account code at hand. Also, you can only reference accounts that are in the underlying financial statement.

In square brackets, enter the keyword acc and the account code in round brackets, for example [acc(A3036)].

Example: Exclude an account from the marketing expenses group in a Profit and Loss statement

Suppose you want to display the value of the Marketing Expense excluding the Website Expense (account code A3036) in the Profit and Loss statement. Add a calculation row with a reference to the Marketing Expense row less the new function referencing the website expense account code [acc(A3036)].

[bal]

Watch these PUG Training videos: (jump to 03.29) and (jump to 23.00)

The Balance [bal] function references the Balance Sheet, allowing you to select Balance Sheet entities to include in calculations on the Profit and Loss statement, which is useful for calculating financial ratios.

In square brackets, enter the keyword bal, select the account group from the list that displays, then select the Balance Sheet item parameter (average, closing or movement).

The function is automatically completed for you, for example [bal(Balance Sheet Detail, Trade and Other Receivables, closing)].

Average balance

The average parameter calculates an average of the Balance Sheet account group based on the start date (opening balance) and end date (closing balance) of the period in the Profit and Loss statement. For example, if Current Assets are included in a Profit and Loss statement for the period January to June, the [bal] function will average the Current Asset values as at the end of December (opening balance) and as at the end of June (closing balance).

Enter the [bal] function as outlined above, then manually enter average before the closing round bracket.

Closing balance

The closing parameter inserts the final position of the Balance Sheet account group based on the start and end dates of the period in the Profit and Loss statement. For example, if Current Assets are included in a Profit and Loss statement for the period January to June, the [bal] function will average the Current Asset values as at the end of December and as at the end of June. This calculation takes into account any material movements in Balance Sheet groups during that period.

Enter the [bal] function as outlined above, then manually enter , closing before the closing round bracket.

Balance Sheet account movement

The Movement paramater displays the difference between the Balance Sheet group value at the start of the period and the value at the end of the period. For example, if January 2023 = 50 and March 2023 = 150, the movement is 100.

[DaysInPeriod]

The [DaysInPeriod] function inserts the number of days in the period associated with the financial statement, allowing you to calculate the revenue per day, profit per day, and so on. You can multiply the days by 365 to produce an annualized result.

In square brackets, enter the keyword day, then click the Number of days in period message that displays.

The function is automatically completed for you and you can proceed to use it alongside other functions, for example:

[stat]

The Statistics [stat] function inserts the sum of a measure from a statistical stream, allowing you to calculate revenue or operating profit per customer, or other business insights by combining statistical (non-financial) streams with financial information.

This function is only applicable if your organization has statistical streams added to a database. Your administrator can add non-financial streams to your financial database using Designer.

In square brackets, enter the keyword stat, then select the stream and measure combination from the list that displays.

The function is automatically completed for you. It includes the stream followed by the measure, for example:

[avg]

The Average [avg] function inserts the average of the values in a measure from a non-financial stream, for a specific period. For example, if you want to know the average number of units sold during the year (monthly basis), the [avg] function will calculate the average of the monthly balances.

In square brackets, enter the keyword avg, then select the stream and measure combination from the list that displays. The function is automatically completed for you. It includes the stream followed by the measure, for example:

This function is only applicable if your organization has non-financial streams added to a database. Your administrator can add such streams to your financial database using Designer. See for detailed information.

Design a database
Formulas for financial ratios
Cashflow - direct and indirect
Ratios and statistical streams
Cashflow - direct and indirect