Cross-Tab Reports

<< Click to Display Table of Contents >>

Raynet One Data Hub > 14.0 > Dashboards and Reports Customization Guide > Designing Reports > Create Reports 

Cross-Tab Reports

A cross-tab report displays complex multi-dimensional data, such as summary statistics, surveys, and market research information. This report uses a Cross Tab control that calculates automatic summaries and grand totals across grouped rows and columns.

 

eurd-web-cross-tab-report-result

 

Add a Cross Tab Control and Bind to Data

1.Create a new report or open an existing one.

2.Drop the Cross Tab control from the Toolbox onto the Detail band.
 
eurd-web-add-cross-tab-to-report
 
You cannot place a Cross Tab in another report control (Table Cell or Panel).
 

3.Select the entire Cross Tab control. For this, click the designer surface outside the control and drag the mouse to the control until the entire control is selected.
 
eurd-web-select-cross-tab-control
 

4.Bind the Cross Tab control to the data source. In the Properties Panel expand the CROSS TAB TASKS section and specify the Data Source and Data Member properties.
 
eurd-web-cross-tab-bind-to-data-source
 

papercliper

Note:

Ensure that a report's Data Source property is not set if you place the Cross Tab in the Detail band. Otherwise, the Cross Tab data is printed as many times as there are rows in the report data source.

 

Define Cross Tab Fields

1.In the Properties Panel, expand the DATA section and click plus in the ROW FIELDS section to add a Row Field. Select the field name from the drop-down list:
 
eurd-web-cross-tab-specify-row
 
You can repeat these steps to add another row field.

2.In the Properties Panel, expand the DATA section and click plus in the COLUMN FIELDS section to add a Column Field. Select the field from the drop-down list:
 
eurd-web-cross-tab-specify-column
 
You can repeat these steps to add another column field.

3.In the Properties Panel, expand the DATA section and click plus in the DATA FIELDS section to add a Data Field. Select the field from the drop-down list:
 
eurd-web-cross-tab-specify-data
 

The resulting cross-tab control looks as follows:

 

eurd-web-cross-tab-fields-defined

 

Specify Group Settings

Select the Cross Tab cell bound to the OrderDate field and click its smart tag. Set the GroupInterval property to DateQuarter to group data by quarters.

 

eurd-web-cross-tab-group-quarter

 

Switch to the Report Viewer to preview the result:

 

eurd-web-cross-tab-preview-group-quarter

 

Format Data

1.Format the currency data. Hold down CTRL, and select the following cells:

othe cell bound to the ExtendedPrice field

othe cells that display column and row totals

othe cells that display column and row grand totals
 
eurd-web-cross-tab-select-currency-data-cells
 
Switch to the Properties window and set the TextFormatString property to {0:c}.
 
eurd-web-cross-tab-format-currency-data-cells
 

2.Select the cell bound to the OrderDate field:
eurd-web-cross-tab-select-order-date-cell
 
Set the Text Format String option to Quarter {0}.
 
eurd-web-cross-tab-format-order-date-cell
 

Switch to the Report Viewer to observe the result:

 

eurd-web-cross-tab-format-data-result

 

Customize Appearance

1.Select the entire Cross Tab control, switch to the Properties window, and expand the STYLES section. Expand the GENERAL STYLE section and set the Border Color to 160, 160, 160. This value applies to all Cross Tab cells.
 
eurd-web-cross-tab-styles
 

2.Expand sections for the HEADER AREA, DATA AREA and TOTAL AREA styles and adjust the appearance as your needs dictate.

 

Adjust the Content Size

Select the column bound to the FullName field and set the ColumnAutoWidthMode property to ShrinkAndGrow. The column width varies depending on the content.

 

eurd-web-cross-tab-report-column-auto-width-mode

 

Adjust the Report Layout

Specify the Landscape page orientation and set the Vertical Content Splitting option to Smart to prevent content from being split across pages.

 

eurd-web-cross-tab-report-adjust-layout

 

Observe the Result

Switch to the Report Viewer. The resulting report is shown below:

 

eurd-web-cross-tab-report-final-result