We moved!
Help articles have been migrated to the new Help and Support. You can find help for your products and accounts, discover FAQs, explore training, and contact us!
Use the following procedures to insert a formula and/or function directly into the design grid of the Report Designer workspace and apply grouping content to a selected row or cell in the design grid.
Creating formulas and functions
- In the design grid, select the cell, row, or column where the formula is to be inserted.
- In the Contents field of Row Properties (Row mode), Cell Properties (Cell mode), or Column Properties (Column mode) in the Design Tools frame, click the Formula button, or choose Insert > Formula to open the Formula dialog.
- Formulas can be created using variables, functions, static amounts, row/column/cell references or ranges, or any combination of those items with the desired operator button.
- Select the Variables option to specify variables from the tree view.
-
Select the Functions option to specify dates, range of date counts, row counts, running totals, and to define variables and/or other detail for the selected function, as required. Show me.
The Validate function enables you to check data for specific formatting by using custom regular expressions for the selected variable.
- Use the Amount, Region, Row, Column, and/or Cell fields to define static amounts and/or row/column/cell references or ranges. Note that the Region field can be specified for cross-region cell references.
- Click OK to save and insert the formula into the selected report, and close the Formula dialog.
Applying grouping content to a selected row or cell
For accounting reports, you can select a grouping type in the Grouping type field and apply a selected grouping to the Chart of Accounts Activity variables within a row or cell.
With a Row or Cell selected, click the Formula button in the Grouping content field to create a formula based on the selected grouping type and apply it to the contents of the selected row or cell.
Notes
- Cell references will only work if the formula is entered in a cell below and to the right of all referenced cells. For details, see Report Designer: Formulas not working properly because of cell referencing.
- 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 click 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, it must be enclosed in square brackets and the correct syntax must be used to create a valid formula. For example, [B3 + B9]. When the syntax is incorrect —for example, 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. Examples
Was this article helpful?
Thank you for the feedback!
Validate example.
The Validate function enables you to check data for specific formatting by using custom regular expressions for the selected variable. Example.