Download Crystal Reports User's Guide

Transcript
Creating a Cross-Tab report
Creating a Cross-Tab report
This section provides you with the steps to create a Cross-Tab object in a new
report and how to add a Cross-Tab object to an existing report.
Things to keep in mind when using Cross-Tab objects:
• You can have multiple rows, columns, and summarized fields.
• You can use print-time formulas as your rows or columns.
• You can use Running Total fields as your summarized field.
• You can include a group sort (top or bottom N) on the rows in your Cross-Tab.
Note: Group sorting cannot be applied to columns.
• You can insert as many Cross-Tab objects in a report as you need.
• You can insert the Cross-Tab into either the Report Header or Footer, or the
Group Header or Footer.
• You can place Cross-Tab objects in subreports. This is useful when you want to
refer to the results from another report.
To create a new cross-tab report
1 On the File menu, click New.
Tip: Another way to do this is to click the New button on the Standard toolbar.
The Crystal Reports Gallery appears.
2 In the Choose a Wizard area click Cross-Tab.
3 Click OK.
The Cross-Tab Report Creation Wizard appears.
Specifying the data source
1 On the Data screen, locate the data source you want to use.
This example uses the Xtreme Sample Database.
For information on how to select a data source, see “Selecting a database to use”
on page 33.
2 Select the tables that contain the fields to include in the report.
Tip: Use the Ctrl-click combination to pick a non-continuous range of fields and
the Shift-click combination to pick a continuous list of fields.
This example uses Customer, Orders, Orders Detail and Product.
3 Click the > arrow to add the selected tables.
4 Click Next.
The Link screen appears.
286
Crystal Reports User’s Guide