Tutorial A-4. Multi-Year Income Statement
This tutorial walks you through the steps of creating a multi-year income statement. It uses the cross-tab object to display multiple columns which summarize the account balances for each year. Using a cross-tab object for the income statement is fairly complex and is going to require advanced formatting techniques. You should be very comfortable with all the concepts covered in the cross-tab chapter to make sure you get the most out of this tutorial.
- Open the “Income Statement Template.rpt” report that you created in Tutorial A-2.
- Save it as Income Statement MultiYear.rpt so that you don’t accidentally overwrite the template report.
- Resize the Report Header section so that it is a couple of inches tall.
- Click on the cross-tab object in the menu bar and place it in the report header to the far left.
- Right-click on the top left corner of the cross-tab object and select Cross-Tab Expert.
- The first step is to add the two formulas that will be the rows in the cross-tab object. Each one has to group on the numeric ID field, but display the text field in the cross-tab.
- In the Available Fields list, click on the formula @Section ID and move it to the Rows list.
- Click on the @Section ID formula in the Rows list and then click the Group Options button.
- Select the Options tab and select the option Use a Formula As Group Name.
- Click the Formula button to open the Formula Workshop dialog box.
- Enter the following formula:
- Click the Save and Close button to save your changes.
- Click the OK button to return to the Cross-Tab Expert.
- In the Available Fields list, click on the formula @Account Class ID and move it to the Rows list. It should now be directly below the @Section ID formula.
- Click on the @Account Class ID formula in the Rows list and then click the Group Options button.
- Select the Options tab and select the option Use a Formula As Group Name.
- Click the Formula button to open the Formula Workshop dialog box.
- Enter the following formula:
- Click the Save and Close button to save your changes.
- Click the OK button to return to the Cross-Tab Expert.
- The next step is to select the date field that will be summarized in the columns.
- In the Available Fields list, click on the field Journal_Entry.Date and move it to the Columns list.
- Click on the Journal_Entry.Date field in the Columns list and then click on the Group Options button.
- At the bottom of the dialog box, click on the drop-down box for The Column Will Be Printed and choose For Each Year. This will summarize the date column for each year.
- Lastly, we need to add the field that will be summarized in the cross-tab.
- In the Available Fields list, click on the @Amount formula and move it to the Summarized Fields list.
- To make sure that you have added the fields correctly, Figure A-13 shows what your Cross-Tab Expert dialog box should look like.
Figure A-13. Cross-Tab Expert field selections.
- If everything looks good, click the OK button to save your changes for the Cross-Tab Expert.
- A preview of your report should look like Figure A-14.
Figure A-14. Income Statement first draft.
- This report has the basic structure of the income statement, but it still needs a lot of work before we are finished with it.