## Crosstab Wizard

This wizard is displayed after you right-click a crosstab and then click Crosstab Wizard from the shortcut menu. It helps you to bind/change data or dataset and specify/modify the layout and style of the crosstab.

The wizard consists of the following screens:

- Data screen
- Display screen
- Layout screen
- Style screen

Back

Goes back to the previous screen.

Next

Goes to the next screen.

Finish

Finishes creating the crosstab report and closes this wizard.

Cancel

Does not retain changes and closes this wizard.

Help

Displays this help document.

### Data screen

Indicates the dataset used by the crosstab. You can specify a new dataset for the crosstab. See the screen.

Define a dataset for the object

Indicates the dataset used by 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 opened report set 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.

Note: Specifying a new dataset may result in some existing fields in the crosstab that do not match fields in the new dataset and become useless. Once you finish the wizard, the unmatched fields will be removed from the crosstab automatically.

### Display screen

Indicates the fields displayed in the crosstab. You can change them. 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 unmatched field in the crosstab with the specified field in the Resources panel.

Columns/Rows

- Field
  Lists the fields that will be displayed on the columns/rows of the crosstab.
- Label
  Lists the display names for the selected fields. You can double-click the name cells to edit them if required.
- Color
  Specifies the background color of the selected fields.

Summaries

- Field
  Lists the fields that you select to create summaries.
- Aggregate
  Specifies the functions used to summarize data of the selected fields.
- Label
  Lists the display names for the selected fields. You can double-click the name 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.

### Layout screen

Indicates the layout of the crosstab. You can change the layout. See the screen.

Vertical Layout

If selected, the aggregate layout will be set vertically.

- Number of Row(s)
  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 Column(s)
  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

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 field(s), the crosstab will repeat. The crosstab will be shown as below:

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

Outside Aggregate Title

Specifies whether or not to put the aggregate display name(s) outer of the crosstab.

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.

Suppress Column Subtotal

Specifies whether or not to show the subtotals of columns.

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.

Table Style

Specifies whether or not to make the crosstab look like a table.

Column Total on

Specifies the position of total columns on the top or bottom of the aggregate.

Row Total on

Specifies the position of total rows on the left or right of the aggregate.

Preview

Displays a preview of the selected layout.

### Style screen

Indicates the style of the crosstab. You can apply another to 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. Available only when the crosstab is inserted into a banded object.