## Crosstab Wizard for page report

This wizard appears when you select the Crosstab layout in the New Page Report Tab dialog or New Page Report dialog and click OK, or right-click a crosstab and select Crosstab Wizard from the shortcut menu. It helps you to create or modify a crosstab in a page report.

The wizard consists of the following screens:

- Data screen
- Display screen
- Chart screen
- Filter screen
- Layout screen
- Style screen

Back

Goes back to the previous screen.

Next

Goes to the next screen.

Finish

Finishes creating or modifying the crosstab and closes this wizard.

Cancel

Does not retain changes and closes this wizard.

Help

Displays the help document about this feature.

### Data screen

Specifies the dataset for the crosstab. See the screen.

Define a dataset for the object

Specifies the dataset you want to use to create or edit the crosstab.

- New
  If checked, select a data source from the catalog resources to create a dataset that will be used to build the crosstab. When you choose to create the dataset from a query, you can click the Modify button to edit the query in the Query Editor if required.
- Existing
  If checked, select a dataset from the ones existing in the open report to create the crosstab. Click the Modify button to edit the dataset in the Dataset Editor if required.
- Current
  If checked, the current dataset used by the parent object will be applied to the crosstab.

### Display screen

Specifies the fields to display in the crosstab. See the screen.

Resources

Lists all the available data resources.

Adds the selected field to be displayed on the columns of the crosstab.

Adds the selected field to be displayed on the rows of the crosstab.

Adds the selected field on which to create summaries.

Replaces the selected field in the crosstab with the specified field in the Resources box.

Columns/Rows

- Field
  Lists the fields that will be displayed on the columns/rows of the crosstab.
- Label
  Specifies the display names for the selected fields. By default these are blank and no names will be created for the fields to label the columns/rows. You can double-click the cells to edit them if required.
- Color
  Specifies the background color of the selected cells.

Summaries

- Field
  Lists the fields that you select to create summaries.
- Aggregate
  Specifies the functions used to summarize data of the selected fields. For details about each function, see Math functions.
- Label
  Specifies the display names for the selected fields. By default these are blank and no names will be created for the fields to label the summaries. You can double-click the cells to edit them if required.
- Comparison Function
  Opens the Comparison Function dialog to add a comparison function as an aggregate for the crosstab.

Specifies in which manner to sort the field values.

Moves the specified field one step up.

Moves the specified field one step down.

Removes the specified field that is not required in the crosstab.

### Chart screen

Specifies to create a chart together with the crosstab, which will be placed above the crosstab in the report body. This screen is available only when you create a crosstab in a page report, and when there is at least one field inserted in the columns or rows, and with at least one summary field in the crosstab. See the screen.

No Chart

Specifies not to create a chart.

Bar Chart

Specifies to create a Clustered Bar 2-D chart together with the crosstab.

Line Chart

Specifies to create a Line 2-D chart together with the crosstab.

Pie Chart

Specifies to create a Clustered Pie chart together with the crosstab.

Category

Lists the fields that have been added to the columns and rows of the crosstab. Choose the field you want to display on the category (X) axis of the chart from the drop-down list.

Series

Lists the fields that have been added to the columns and rows of the crosstab. Choose the field you want to display on the series (Z) axis of the chart from the drop-down list.

Show Values

Lists the fields that have been selected to create summaries in the crosstab. Choose the value you want to display in the chart from the drop-down list.

### Filter screen

Specifies to filter data displayed in the crosstab. This screen is available only when you create a crosstab. See the screen.

For details about options in the screen, see Edit Filter dialog.

### Layout screen

Specifies the layout of the crosstab. See the screen.

Aggregate

Specifies properties of the aggregate fields.

- Vertical Layout
  If selected, the aggregate layout will be set vertically.
  - Number of Rows
    Specifies the number of rows to be displayed in a crosstab. By default, it is -1, which means that there is only one column with which to arrange the aggregate fields vertically; if it is set to 1, that means there will be only one row to arrange the aggregate fields horizontally; if it is set to a number larger than 1, that means there will be this number of aggregate rows; if this number is larger than the number of aggregate fields in the crosstab, it will be treated as -1.
- Horizontal Layout
  If selected, the aggregate layout will be set horizontally.
  - Number of Columns
    Specifies the number of columns to be displayed in a column. By default, it is -1, which means that there is only one row with which to arrange the aggregate fields horizontally; if it is set to 1, that means there will be only one column to arrange the aggregate fields vertically; if it is set to a number larger than 1, that means there will be this number of aggregate rows; if this number is larger than the number of aggregate fields in the crosstab, it will be treated as -1.
- Repeat Aggregate
  Specifies whether or not to repeat the crosstab for different aggregate fields.

  Assume that you have created a crosstab on the query WorldWideSales in the catalog file SampleReports.cat as follows: added Products_Product Type ID as the column field, added Customers_Country as the row field, added Quantity and Discount as the aggregate fields and specified the functions as Sum, and applied the style Classic to the crosstab.

  - If checked, one cell will contain only one aggregate field value, while for the other aggregate fields, the crosstab will repeat. The crosstab will be shown as follows:

  - If unchecked, one crosstab cell accommodates the values of all aggregate fields. The crosstab will be shown as follows:

- Outside Aggregate Title
  Specifies whether to place the summary label on the leftmost column when the aggregate layout is vertical, or on the topmost row of the crosstab when the aggregate layout is horizontal.

Suppress Row Grand Totals

Specifies whether or not to show the grand totals of rows.

Suppress Column Grand Totals

Specifies whether or not to show the grand totals of columns.

Suppress Row Subtotal

Specifies whether or not to show the subtotals of rows. If required, you can click to open the Suppress Row Subtotal dialog to specify which subtotals of the rows will be suppressed, and which will be shown.

Suppress Column Subtotal

Specifies whether or not to show the subtotals of columns. If required, you can click to open the Suppress Column Subtotal dialog to specify which subtotals of the columns will be suppressed, and which will be shown.

Note: The settings of the above four options will only take effect in view mode.

Repeat Column Header

Specifies whether or not the header of column will be appeared on every page, if a crosstab spans more than one page.

Use Table Style

Specifies whether to add headers to the Total rows and columns.

Column Totals On

Specifies the position of total columns on the left or right of the aggregates.

Row Totals On

Specifies the position of total rows on the top or bottom of the aggregates.

Preview

Displays a preview of the selected layout.

### Style screen

Specifies the style of the crosstab. See the screen.

Style

Lists the available styles.

- <Custom>
  There is no any style information on it and it is only used to cover previous-version report which did not bind any style or the bound style cannot be found in the style list.

Preview

Displays a diagram illustrating the effect of the selected style on the crosstab.

Inherit Style

Specifies whether to make the crosstab take the style of its parent. This options is available only when you modify a crosstab and the crosstab is inserted into a banded object.

Page Setup

Opens the Page Setup dialog to specify page properties. Available only when creating a page report.

###### Related topics:

- Creating a crosstab report
- Modifying a crosstab