Use the following procedures to insert formulas and functions directly into the design grid of the Report Designer workspace and apply grouping content to a selected row or cell in the design grid.
Create formulas and functions
In the design grid, select the cell, row, or column where you want to insert the formula.
Select
Insert
then
Formula
.
note
Alternatively, select Formula next to the
Contents
field of either Row, Cell, or Column Properties.
Create your formula with variables, functions, static amounts, row/column/cell references or ranges, or any combination of these items with an operator.
Select
Variables
if you want to specify variables from the tree view.
Select
Functions
if you want to specify dates, range of date counts, row counts, running totals, and to define variables and/or other detail for the selected function.
Date:
Variable 1; Date format; Period.
Day:
Variable 1.
Month:
Variable 1.
Year:
Variable 1.
End of Month
: Month (1-12)
Day Count:
Variable 1-2.
Week Count
: Variable 1-2.
Month Count
: Variable 1-2.
Row Count:
Region; Row number (1-nn).
note
Displays the number of times a specified row is output in the report. The function reads a row that is only a single repeating level away from the level in which it is placed. Ffor example, the RowCount function in
level 1
typically counts a row in the
level 2
. The function resets when the repeating level group starts again.
Total Row Count
: Region; Row number (1-nn).
note
Displays the total number of times a specified row is output in the report. The function reads from a row for an unlimited number of nested repeating levels and continues to count even when the functions repeating level starts over.
Running Total
: Cell reference.
Validate:
Variable 1; Regex format.
The
Validate
function enables you to check data for specific formatting by using custom regular expressions for the selected variable.
Use
Amount
,
Region
,
Row
,
Column
, and/or
Cell
fields to define static amounts and/or row/column/cell references or ranges. You can specify the
Region
for cross-region cell references.
Select
OK
.
Apply grouping content to a selected row or cell
For accounting reports, you can select a
Grouping type
and apply a selected grouping to the
Chart of Accounts Activity
variables in a row or cell.
note
Account groupings enable you to group similar accounts together to compare balances and optimize reporting capabilities.
Select a Row or Cell then select
Formula
next to
Grouping content
to create a formula based on the selected grouping type and apply it to the contents of the selected row or cell.
note
Cell references will only work if the formula is entered in a cell below and to the right of all referenced cells.
Rather than applying properties to an entire cell via Cell Properties, you can apply attributes to specific variables using the Formula dialog. For example, you can use the
Grouping type
,
Grouping content
,
Period
,
Amount type
, and
Basis
fields in the
Formula
dialog to apply attributes to Chart of Accounts Activity variables, such as
ChartofAccountsActivity.Amount
or
ChartofAccountsActivity.Core.Amount
.
The formula is displayed in the
Formula
pane of the dialog as you select items and operator buttons to create the formula. You may edit the formula directly in the
Formula
pane, but you must use the correct syntax to create a valid formula.
If you enter a formula directly into a cell in a report, you must enclose it in square brackets and use the correct syntax to create a valid formula. For example,
[B3 + B9]
. When the syntax is incorrect (such as when a letter is missing from the variable to create a misspelling) a red arrow appears in the corner of the cell that contains the error. If a bracket is missing from the formula, the
#FORM!
error is displayed in the cell, and when and invalid cell reference is part of the formula, the
#REF!
error is displayed in the cell.
When there is an amount row that repeats multiple times (most commonly a row that uses an account description variable, such as
[ChartofAccountsActivity.Core.Amount]
), a formula such as
[(CA) - (CA:CASH)]
cannot be applied to that row in the
Grouping content
field of the
Design Tools
frame. To display the correct results, formulas that display only
total amounts
or those that are assigned to a single account group should be entered in the
Grouping Content
field.
Example 1
The following example provides a method to display a row that is set to repeat for each account that has the classification code CA (no subcode).
Example 2 (incorrect)
The following example displays the same row as in Example 1, but includes an incorrect formula
[(CA) - (CA:CASH)]
in the Grouping content field. (This method incorrectly assumes the formula will repeat the row for all CA accounts, except the accounts with a subcode of CASH.)
Example 3
The following example provides a method to display a row that displays only once as a
total
of all the accounts for a single grouping (Non-cash accounts).
Example 4
The following example provides a method to print all Current Asset (CA) accounts, except those accounts with a subcode of CASH. Each row repeats separately with a different subcode for the CA classification code (for example, MS, AR, INV, OCA, No subcode).