Skip to main content
Version: 24.3

Crosstab Configuration

Cross tabulation style reports give users the ability to display joint distributions of data from three separate columns. The results of the cross tabulation are displayed in table format. Every crosstab table consists of three columns.

Column TypeUse in Crosstab Table
HeaderPopulate the first row of the table. Each new value encountered in the crosstab column produces a new column in the crosstab table.
LabelPopulate the first column of the table.
ValuesPopulate the aggregate data. The aggregate values are a sum, count, standard deviation or average of the fields in the Value column.

Crosstab Configuration

A crosstab report displaying sales totals per employee across years.

Users can also include crosstab summary data by adding an optional summary row or summary column.

In order to build a crosstab, you only need to pick three columns, Header, Label and Value, and decide how you want the value column be aggregated. These selections can be made in the Crosstab Configuration tab, with minimum attributes displayed.

You have many other options with the crosstab at your fingertips that you can use if needed. All of these other options can be accessed either on Crosstab Configuration page, with all attributes displayed, or on the Crosstab Settings tab.

Below, we will discuss how to create a crosstab with its minimum requirements and later introduce the optional controls.

To add a simple Crosstab table:

  1. From the Report Builder interface, click on the in the Insert ribbon at the top of the interface to add the Crosstab component to the report. Use drag-and-drop methods to place the crosstab into the report in a specific location in the Report Layout panel.

  1. From the Crosstab Configuration panel's Header Values Column section, choose a header Column from the drop-down list.
  2. From the Label Values Column section, choose a label Column from the drop-down menu.
  3. From the Values Column section:

a. Choose a value Column from the drop-down menu.

b. Choose an Aggregate Function1 from the drop-down menu.

Your crosstab table is ready at this point.

Note: The available aggregate functions are Sum, Average, Standard Deviation and Count.

Exploring the options

Click on the Show All Attributes icon to view the extended options on the Crosstab Configuration tab.

If the Header column is a date column, a drop down list of time periods will be displayed.

Crosstab Configuration Header Values

The options in the list include:

  • None display the date information in the header and aggregate the values by date
  • Year display the year information and aggregate the values by year
  • Quarter display the first day of the quarter and aggregate the values by quarter
  • Fiscal Quarter display the first day of the fiscal quarter and aggregate the values by fiscal quarter
  • Month display the first day of the month and aggregate the values by month

When all attributes are displayed on the Crosstab Configuration tab, the following extra options are available for Label column:

Crosstab Label Values columns

  1. Header This is the caption that is shown for the Label column on the title row of the crosstab. It changes every time you select a new Label column to reflect the name of the selected column. But you can change it to your desired text.
  2. Sortable1 When checked, this option changes the header of the Label column into a link that toggles the sort order of the crosstab rows by the values in the Label column.
  3. Linked This option may or may not be available, depending on whether the selected Label column has a pre-defined link associated with it or not.
  4. Format Allows you to choose a display format for the label column value.
  5. Alignment Sets a cell alignment for the label column values.
  6. Add a Layer Layering the Label column is an advanced function that automatically generates drill-down capability for the crosstab Label column. Read about it in the Adding Drill-down Capability to Crosstabs section.

The following extra options are available for Value column:

Summary row

  1. Sortable1 When checked, this option changes the header of the Value column, if available (otherwise the link is put on Header column instead), into a link that toggles the sort order of the crosstab rows by the values in the Value column.
  2. Format Allows you to choose a display format for the Value column values.
  3. Alignment Sets a cell alignment for the Value columns.
  4. Style Adds conditional styling to values. This feature is explained fully in Conditional Styling of Crosstabs section, later.
  5. Add Extra Value Columns Displaying multiple Value columns in a single crosstab table is an advanced feature that is described fully in Adding Multiple Value Columns section.

The following options are available for adding a Summary Row:

Summary column

  1. Include This check box adds or removes the Summary Row.
  2. Caption Type a caption, which describes the summary value.
  3. Aggregate Function2 Sets a cell alignment for the Value columns.
  4. Format Choose a display Format for the summary value.

The following options are available for adding a Summary Column:

Crosstab label column

  1. Include This check box adds or removes the Summary Column.
  2. Header Type a caption, which describes the summary value.
  3. Aggregate Function3 Sets a cell alignment for the Value columns.
  4. Format Choose a display Format for the summary value.

Notes:

  1. The default sort order of the Label and Header column values is dictated by the sort order of the Data Source, however a crosstab is created dynamically and may not reflect the expected sort order of the Label and Header. This is particularly true when the data has missing information.

  2. The available aggregate functions for Summary Row are: Sum, Average (of crosstab rows), Standard Deviation, Count (of crosstab rows), Count Distinct, Average of All Rows, and Count of All Rows.

  3. The available aggregate functions for Summary Column are: Sum, Average (of value columns), Standard Deviation, Count (of value columns), Average of All Rows (used for the particular row of the crosstab pertaining to the summary value), and Count of All Rows (used for the particular row of the crosstab pertaining to the summary value).

Hint: Crosstab tables can become quite long if there are a large numbers of distinct values in the crosstab Label and Header columns. If such is the case, limit the data by setting parameters on the data from the Data component's Parameters step.

Adding Drill-down Capability to Crosstabs

At times you may need to drill down to the details of a crosstab layer and find out how the top level values came to be.

You can add as many layers to a crosstab as you need in a very easy manner.

Click on the Add a Layer button to display the following dialog.

Each layer consists of another crosstab table identical to the main layer, but with a different Label column. It makes sense to pick a column that can serve as the detail for the Label column in the layer right above it.

All available columns, except for those that have already been selected for the previous layers, can be selected for this new layer.

Just like the main layer, a Header can be entered for this new Label Column and it can be set as sortable and/or linked (if pre-defined as being linkable). Its format and alignment can also be determined.

Once a new layer has been defined, the default view of the Label Values Column panel will change to a grid.

Label Values Column

Layers can be moved up or down using Shift up and Shift downor by using drag-and-drop methods using the alt text handle. They may be edited using Edit icon and Delete icon removed using action icons.

Adding Multiple Value Columns

If more than one Value Column is needed under crosstab, additional columns can be added by clicking the Add Extra Value Columns button. The following Crosstab Value Column dialog will be displayed.

Crosstab Value column

The process is exactly like adding the first Value Column. The difference is in the Header option, which is missing for the first Value column. However if multiple Value Columns have been defined, each column can have its own header, which will be displayed under the Header Column values.

Once a new Value Column has been defined, the default view of the Value Column panel will change to a grid.

Values Column

Value Columns can be moved up or down usingShift up or Shift downor by using drag-and-drop methods using the Save-iconhandle. They may be edited using Modify-icon and Delete-icon removed using action icons.

Separate Summary Row and Summary Column functions, as well as Styles can be defined for each Value Column by using respective icons in each row of the grid. If either of these items has been defined, their icons will change to an on state.

Conditional Styling of Crosstabs

Conditional styling of crosstabs is very similar to that of a data table. The only difference is that styles can only be set, as well as depend on Value columns. Therefore the columns listed in the Column drop-down only consist of all selections for Value columns.