Add a conditional expression before a title row
You can create financial statements that automatically adjust their titles based on the reporting period. This saves you time and ensures your reports always have the correct heading.
Follow the steps in this example to change the column headings based on the client's current period.
- SelectFile, thenReport Designer.
- Select the+next to the document type folder.
- Double-click the report to open it.
- Save a backup (recommended):
- SelectFile, thenSave As.
- Give your report a new name.
- Set up for mid-year reports:
- In the design grid, select row 1, then .
- In the new row, selectInsert, thenConditional Expressions.
- Create a conditional expression that prints rows 1 through 4, if the variable[Client.AccountingProcessing.CurrentPeriodEndDate]is less than (<) the variable[Client.AccountingProcessing.CurrentFiscalYearEndDate].
- Set up for year-end reports:
- Select rows 1 through 4 in the design grid, then .
- Select row 5, then .
- With the row selected, select .
- Create a conditional expression that prints rows 5 through 8, if the variable[Client.AccountingProcessing.CurrentPeriodEndDate]is equal (=) to the variable[Client.AccountingProcessing.CurrentFiscalYearEndDate].
- Select cell B6, remove the variable, and enterOne Yearto change the contents of the cell toOne Year Ended.
- Repeat the previous step for cell D6.
- SelectFile, thenSave Asto save your changes.
- Mid-year reports display the regular title.
- Year-end reports displayOne Yearinstead ofCurrent Year.