Pivot Grid

This page describes how to set up and configure the Pivot Grid component which displays a Pivot/OLAP control data set.

The Pivot Grid component has two types of columns:

  • Breakdown columns: These columns contain the key data points that are used to further define the aggregate data.

  • Aggregate columns: These columns produce cumulative values using predetermined functions or custom analytics.

Drilldown

Drilldown refers to an action taken by the user to pursue more information about and for a given value. A drilldown is performed when the user clicks on the plus sign (+) that appears in front of the breakdown value. The additional information comes from the presentation of more breakdown columns.

The following screenshot shows a Breadcrumbs component and a Pivot Grid with the optional Pivot Grid tools.

Screenshot

This page provides details on how to:

Set up a Pivot Grid

To set up a Pivot Grid component, click-and-drag the component into the workspace and configure the following:

  1. Define the data source, and ensure the Pivot checkbox is checked to complete the Pivot Query section in the dialog.

  2. Set the Focus property to align with Breadcrumbs component. The use of a breadcrumb component is optional.

  3. Configure breakdown and aggregate column formats.

Refer to Pivot Grid properties described in the next section for details on additional properties.

Pivot Grid properties

The following sections provide details on how to configure the properties of the Pivot Grid component.

Basics

Open the Basics properties on the right and configure the properties described in the following table.

Screenshot

Field

Description

 

Name

A name for the component provided by the user.

 

Data Source

Define the source data for the grid. Ensure that the Pivot checkbox is checked and the Pivot Query section is filled in.

 

Focus

A View State Parameter used for linking components.

`

Single Column Drilldown

This setting can limit the number of displayed breakdown columns to one.

  • When unchecked, expanding a breakdown value (drilling down) adds the next breakdown column to the grid.

    Single column drilldown

  • When checked, drilling down uses and shows a single column to display breakdown values. In the example below, when the user drills down to src only the src column is shown.

    Multiple column drilldown

 

Show Tools

When selected user controls, Drilldown, Show Filters, and Download are shown.

Screenshot

 

Animate

Offer smoothing animation on drilldown versus a 'hard' drilldown.

 

Multiple Drilldown

Supports multiple OLAP drilldown paths versus the default single drilldown.

 

Expand All

All OLAP elements are expanded on Pivot Grid load.

The following example shows two expanded OLAP pivots.

Screenshot

 

Show Expanded Summary

For a drilldown row, when checked include the parent summary values otherwise only show the child drilldown values.

 

The following example shows an expanded parent summary row.

Screenshot

 

Use Cached Columns

If checked, for new aggregated or breakdown columns it takes the column data from the column cache if present.

 

Show Cached Columns

When checked the Cached Columns properties are displayed.

 

Sort Column/Sort Order

Sort Column and Sort Order define the default sort order, ascending or descending, for the selected data source column on load.

 

Scroll Value

A number representing the distance in pixels from the top of the pivot grid to the currently visible scroll position.

 

Keep User Customizations

When checked, changes to a column size or column position are automatically saved for the end-user and these changes are applied to the Pivot Grid when the Dashboard reloads.


When the Breakdown Cols value in the Pivot Grid's Data source is specified using a view state, the end-user must click on the "Save View State" button in order for the changes to the breakdown column position to be preserved.

The Reset View State button can be used by the end-user to restore the original column widths and column positions.

 

Column Width Mode

Select the method for calculating the width of columns in the Pivot Grid. The column width is calculated when:

  • The Pivot Grid's initial display is rendered

  • The Pivot Grid is resized

  • A column is added or removed

  • The browser window is resized, causing the Pivot Grid to change its size

There are three column width modes that determine how the columns behave when the column width(s) need to be calculated:

  • Relative - The size of the columns are dynamic and are based on the size of the Pivot Grid. The column width is calculated when columns are introduced, removed, or the width of the Pivot Grid is changed, so that all of the component's horizontal space is used. This is the default mode.

  • Fixed - The column widths do not change when the Pivot Grid increases/decreases in size or when columns are added/removed. This is useful when you don't want the size of the column to be influenced by the size of the grid or the browser window.

  • Fixed for User resized columns, otherwise Relative (Mixed Mode) - This is a combination of Relative and Fixed modes. The width of a column is relative to the size of the Pivot Grid unless the end-user resizes that column. When the end-user resizes a column, its column width is fixed.

The option selected here determines whether Relative Width or Fixed Width is displayed in the Breakdown and Aggregate Column properties.

Note

Conflicting Column Width Modes

If the Dashboard author changes the Column Width Mode after an end-user has saved column width sizes, the Column Width properties from the Dashboard supersede the saved end-user data.

 

Breakdown columns

Breakdown columns define how the data is grouped and organized in the pivot grid. They determine the categories over which aggregate columns compute summary values.

Configure Breakdown column properties described in the following table.

Screenshot

Field

Description

Display Name

Enter a name for the column.

Header Tooltip

Text description that appears when the mouse hovers over a column header. If blank, the default tooltip specifies the name of the column and a hint about what features are available to the user at that mouse position.

Screenshot

 

 

Minimum Width (px)

This specifies the minimum width of the column in pixels.

Fixed Width/Relative Width

The property name varies depending on the Column Width Mode set in the Basics properties.

Relative Width - This is displayed when the Column Width Mode is either Relative or Mixed.

This specifies a numerical value that represents the width of a column, and can be set:

  • Manually by typing in the value .

  • Automatically when the Dashboard author visually resizes a column in Preview mode.

Fixed Width - This is displayed when the Column Width Mode is Fixed.

This represents the width of its column in pixels and has a default value of 150 pixels, and can be set:

  • Manually by typing in the value .

  • Automatically when the Dashboard author visually resizes a column in Preview mode.

Refer to Resizing columns for further details on how these values are applied.

.

Text Align

Sets the text alignment to center, left, or right.

Sortable

This setting controls whether the Sorting feature is available to the user.

  • When checked, the sort indicator appears in the column header as a triangle to indicate the sort direction or that no sort will be applied. When the user clicks on the column header, the sort feature toggles between Ascending, Descending, and No Sorting for data change events using this column.

  • When unchecked, there is no sorting indicator in the column header and the Sort feature is disabled.

Format

Screenshot

Formatted columns

Precision and Hide Trailing Zeroes

Number of decimal places used to display numeric, and whether to show trailing zeroes.

Currency Symbol

Text representation of currency symbol in data column; select from $, £ or .

 

This example shows currency columns with prefixed symbols.

Screenshot

Date Format and Time Format

Set the date and time format.

This example shows timestamps with a DateTime format .

Screenshot

Percentage Color

A color: where Format is Percentage, displays a mini bar in the range 0-100%.

This example shows Percentage values with mini bars.

Screenshot

Tip

View state parameter

Percentage Color can be a View State Parameter: roll over the end of input bar until until the eye icon appears, click the icon to assign the view state.

Template

Apply HTML customizations with Handlebar helpers. For example:

HTML

Copy
<font color="blue">{{column name}}</font>

Where {{column name}} is the reference name for the column from the data source.

Refer to Templates for further details.

Aggregate columns

Aggregate columns present the numeric or quantitative values resulting from an aggregation function (i.e. SUM, AVG, COUNT).

Configure the Aggregate column properties described in the following table.

Screenshot

Field

Description

Data Field Name

A Data Source column.

Display Name

Column name.

Header Tooltip

Text description that appears when the mouse hovers over a column header. If blank, the default tooltip specifies the name of the column and a hint about what features are available to the user at that mouse position.

Screenshot

Minimum Width (px)

This specifies the minimum width of the column in pixels.

Relative Width/Fixed Width

The property name varies depending on the Column Width Mode set in the Basics properties.

Relative Width - This is displayed when the Column Width Mode is either Relative or Mixed.

This specifies a numerical value that represents the width of a column, and can be set:

  • Manually by typing in the value .

  • Automatically when the Dashboard author visually resizes a column in Preview mode.

Fixed Width - This is displayed when the Column Width Mode is Fixed.

This represents the width of its column in pixels and has a default value of 150 pixels, and can be set:

  • Manually by typing in the value .

  • Automatically when the Dashboard author visually resizes a column in Preview mode.

Refer to Resizing columns for further details on how these values are applied.

.

Text Align

Alignment of values inside Pivot Grid: left, center, right.

Sortable

This setting controls whether the Sorting feature is available to the user.

  • When checked, the sort indicator appears in the column header as a triangle to indicate the sort direction or that no sort will be applied. When the user clicks on the column header, the sort feature toggles between Ascending, Descending, and No Sorting for data change events using this column.

  • When unchecked, there is no sorting indicator in the column header and the Sort feature is disable.

Format

Formatting for the data in the column.

Precision

Where data are numeric, the number of decimal places to display.

Hide Trailing Zeroes

Removes trailing zeroes from displayed values.

Currency Symbol

Set the currency symbol to be used.

This example shows values with prefixed currency symbols.

Screenshot

Date Format

A Date format and a Time format: where Format is Date, Time, or DateTime the display format is combined from Date Format and Time Format.

 

This example shows a DateTime column with both a Date Format and a Time Format .

Screenshot Screenshot

Time Format

Highlighting negatives

When Highlight Negative is checked, negative values are shown in Negative Color.

 

This example shows a Pivot Grid with negative numbers highlighted .

Screenshot

Highlighting changes

When Highlight Changes is checked, cells are highlighted green (for higher than previous value) or red (for lower than previous value). This is used for streaming or polling data. The persistence of the highlight is controlled by Highlight Change Duration.

Show arrows on Change

When checked, up and down arrows appear when the value is greater or less than the previous value. Used for streaming or polling data.

Highlighting highs, lows and ranges

Checkboxes Highlight Min Value, Highlight Max Value, and Range Highlight apply colors to highlight values.

 

This example shows columns with Min Value Color, Max Value Color, and Range Color applied

Screenshot Screenshot Screenshot

Invert Range Color

Flip range color usage. Dark shade for high values, light shade for low values.

Percentage Color

A color, used for mini-bars when Format is Percentage.

Screenshot

Tip

Colors can be view state parameters

Min Value Color, Max Value Color, Range Color, and Percentage Color can be View State Parameters.

Footer

Adds a column sub-total value for weighted average, average, count, sum or none.

 

This example shows a footer with totals (sum).

Screenshot

Footer Weight

Applies a weighting to current column by selected data source variable. For this to be enabled, Footer must be set to weighted average.

Selection and routing

Configure the properties described in the following table.

Screenshot

With Row Selection, values from the selected grid row or cell are mapped to a View State Parameter.

Refer to Viewstate routing for further details.

Action

Refer to Actions for details.

Highlight rules

Refer to Highlight Rules for details.

File export

Configure the property described in the following table and refer to Export for details about common settings.

Field

Description

Full Export Override

Overrides the pivot query dataset with an alternative dataset.

Cached Breakdown/Aggregate Columns

When Show Cached Columns is set in the Basics properties, you can configure the properties described in the following table.

Field

Description

Cached Breakdown Columns

A list of dependent and appearance columns that can be defined by the pivot query or an user. For dynamic pivot queries where the column data can change, the cached columns can be used to populate the breakdown and aggregate column list.

Cached Aggregate Columns

Style

Refer to Style for common settings. Configure the properties described in the following table.

Field

Description

Even Row Background & Odd Row Background

Background colors of the even and odd rows

Selected Row Background

When Enable Row Selection is checked, the background color of the selected row

Expanded Summary Style

When Enabled sets a background color, underline and bold text for the expanded summary

Header Row Height

Set the height for headers and table rows.

 

This example shows the results of setting different height values.

Screenshot

Row Height

Header Text Transformation

Text transformation for column headers.

Header Font Weight

Font weight for column header.

Font Family

Font family for column headers and rows

Font size

Font size for rows (css format), e.g. 18px, 0.8em, 80%, larger

Advanced CSS

Refer to Advanced CSS for details.

 

CSS Classes

Adjusting the Column Layout

The following sections describe how to:

Resize Columns in a Pivot Grid

This section describes how Dashboards authors and end-users can resize columns within a Pivot Grid.

Dashboards authors can manually specify the column width by typing the size value into the column properties for the Breakdown and Aggregate columns.

To visually resize a column, whether you are the Dashboard author in Preview mode or end user viewing the dashboard:

  1. Position the mouse over the right-hand border of a column's header.

    The color of the border changes to the Dashboard's highlight color and the mouse pointer image changes to a column resize cursor.

    Screenshot

  2. Click and drag to the left or right. A visual guideline, that spans the full height of the component, becomes visible until the mouse button is released.

  3. Screenshot

  4. Release the mouse button once the desired width is visualized. The new column width is adjusted to this position.

When columns are resized visually by the Dashboard author, the value of the Relative Width/Fixed Width column property in the Breakdown and Aggregate columns properties section are automatically updated.

Information

To preserve column width changes made by the end-user, check the Keep User Customizations checkbox in the Basics properties.

 

Reorder Pivot Grid columns

The following steps describe how to reorder the columns in a Pivot Grid.

  1. Position the mouse over a column's header. The default tooltip specifies the name of the column and a hint about the features available to the user at that mouse position.

  2. Screenshot

    Information

    If the Header Tooltip property for a column has been specified, the tooltip does not include the hint(s).

    If the column's Sortable property is unchecked, the default tooltip hint does not include text that says Click to sort.

  3. Left click and continue to hold down the mouse button:

    • A label with the column name appears and moves with the mouse pointer.

    • The mouse pointer image changes to a move cursor if the column can be moved to the target destination, or a not allowed cursor if the location is invalid.

    • The other column type (breakdown/aggregate) has a strikethrough appearance to indicate to the user that the column being moved cannot be moved to that area.

    • Screenshot

    • When moving the mouse across the pivot grid, a visual marker appears as an arrow pointing down to a vertical line spanning the component's height to show the intended destination of the moved column when the user releases the mouse button. The position of the marker is determined by the nearest applicable column boundary.

    • If the pivot grid has a horizontal scrollbar, when the mouse is close to the left or right hand edge of the component, it is in the automatic scroll zone when it is within 15% of the grid's visible width. In this scenario, the grid automatically scrolls in the direction of the nearest edge for the grid and the scrolling speed accelerates as the mouse moves closer to the component's edge.

  4. Release the mouse button to move the column to the location indicated by the visual marker.

    Information

    To preserve column position changes made by the end-user, check the Keep User Customizations checkbox, in the Basics properties.

Note

When the Breakdown Cols value in the Pivot Grid's data source is specified using a view state, as shown below:

Screenshot

The end-user must click Save View State to preserve any reordering of breakdown columns when a view state is used to specify the breakdown columns in the data source.

Screenshot

Further Reading