The pivot grid allows you to display summarized data in a cross-tabular format, meaning it is organized in rows and columns.
A cross-tab layout is a powerful way to visualize data intersections, providing a detailed breakdown of how different data dimensions interact. In a Pivot Grid, you can configure cross-tabs by defining rows and columns based on different data dimensions, creating a grid-like structure that summarizes data across multiple axes.
NOTE: Before adding the Pivot grid widget to the design layout, make sure to create the data source. You can refer to this section to learn how to create a new data source.
A pivot grid needs a minimum of 1 value, 1 row, and 1 column element to display proper pivot table details. The measure or expression field that you would like to analyze can be dropped into the Value(s)
field. The dimension that you would like to categorize the measure based on row and column can be dropped into the Row(s)
and Column(s)
fields.
The following steps explain how to configure the data for a Pivot grid:
Properties
icon in the Configuration panel to open the Property pane.ASSIGN DATA
tab from the PROPERTIES,
to assign data to the pivot grid data fields.ASSIGN DATA
tab will be opened with available measures and dimensions from the connected data source. It also contains the Value(s)
, Row(s)
, and Column(s)
fields as mentioned earlier.You can add more than one Measure
into the Value(s)
field by dragging and dropping the required measures.
Now the pivot grid will be rendered like this for a single data.
Pivot grid will be rendered like this, if more than one data bind to Value(s)
If more than one data is added to Value(s)
field and then grid column is separated based on the number of data attached to Value(s)
field, as shown in above image.
Click the Settings
option to change the name using the Rename
option and the required summary type from the available summary types shown in Settings
.
Depending on the Summary Type, you can convert the individual values to a percentage based on the grand total using the Show Value As
option.
No Calculation
The No Calculation
option is used to retrieve the actual value.
Percentage Of Grand Total
To change the Show Value As
type to Percent Of Grand Total
, it converts the individual value to a percentage based on the row and column grand total.
Percentage Of Row Total
To change the Show Value As
type to Percent Of Row Total
, it converts the individual value to a percentage based on the row grand total.
Percentage Of Column Total
To change the Show Value As
type to Percent Of Column Total
, it converts the individual value to a percentage based on the column grand total.
NOTE: Aggregated expressions and the Average summary types are not applicable for the
Show Value As
option.
You can filter the data to be displayed in the pivot grid by using filters. For more details, refer to the filter.
You can format the data to be displayed in the pivot grid by using the format option. For more details, refer to the measure format
You can add more than one column from the Dimensions
field into the Value(s)
field.
Adding a single data to Value(s)
and Column(s)
You can change the Settings
.
The configured field names can be edited by using the Rename
option provided in the settings menu.
You can sort
the dimension data using the Sort
option under the Settings
menu list. To apply sorting for the data, refer to Sort.
You can apply filters by selecting the filter in settings. For more details, refer to the filter.
Similarly, you can add the Measures
and Expressions
into the column(s)
field.
You can drag and drop the Measure
or Dimension
into the Row(s)
field.
You can apply filter and sort options for the rows field if required.
If more than one data is added to the Column(s)
field, then the arrow icon or node is prepended to each cell of the column header. A new tree view list will be opened when the arrow icon is clicked.
Adding Multiple data to Column(s)
with single Value(s)
and Row(s)
.
If more than one data is added to the Row(s)
field, then the arrow icon or node is prepended to each cell of the row header. A new tree view list will be opened when the arrow icon is clicked.
Adding Multiple data to Row(s)
with single Value(s)
and Column(s)
.
You can drag and drop the elements to Hidden Columns
if required. Based on the hidden column elements, the values will be shown.
You can configure the tooltip
section to showcase additional information in the widget’s tooltip without affecting the visualization. Refer to this section for more details on configuring the tooltip fields.
To remove the added data from fields, click the highlighted cross icon.
Important
- Currently, the pivot grid has a limitation of up to 50,000 records.
The pivot grid can be formatted to improve the view by using the settings available in the Properties tab.
Follow the steps below to format the pivot grid:
Drag and drop the pivot grid onto the canvas and resize it to the desired size.
Click on the Settings icon and configure the data from the ASSIGN DATA
tab as mentioned in the previous section, then switch back to the PROPERTIES
tab.
The property window will be opened.
You will see a list of properties available for the widget with their default values.
The properties in this section allow you to give a name, subtitle, and description for the pivot grid.
This property allows you to set a title
for the pivot grid widget.
This property allows you to set a subtitle
for the pivot grid widget.
This property allows you to provide a brief explanation about the pivot grid widget.
The Basic Settings
section contains general properties for the pivot grid, including value sorting, collapsing and expanding node states, saving the state of nodes, and text wrapping.
This option allows you to toggle the visibility of the tooltip in the pivot grid.
If we click the column header, the value field get sorted as ascending or descending when the property Allow Value Sorting
is enabled.
If this property’s checkbox is checked, the nodes will be expanded by default.
By enabling the Expand nodes
property, the Save Nodes state property will be hidden.
This property restores the expanded and collapsed state of nodes even after reloading the dashboard.
By default, long texts get trimmed in pivot grid. But if the property Allow Text Wrap
is enabled, then it displays a wrapped text instead of a trimmed one.
NOTE: Enabling the
Allow Text Wrap
property will disable theRow Height
property in the content settings.
You can resize the pivot grid by dragging the vertical lines of the pivot grid control.
This property automatically adjusts the column widths in the pivot grid based on the length of the content in each column.
NOTE: Enabling this property will disable the Column Width and Header Column Width properties.
Note: The
Virtualization
dynamically loads the given data when you scroll down the pivot grid. If any one of these properties (Fit to content, allow text wrap, and allow column resize) is enabled, then thevirtualization
is disabled. Also, we do not recommend using these properties (Fit to content, allow text wrap, and allow column resize) when dealing with a large number of records.
This property displays the values in rows.
Enabling this option allows you to hide null
or empty
headers in the pivot grid table.
In the following image, the column headers have (Null)
values in data.
By enabling this option, the (Null) header column gets hidden.
This option allows you to set a value for empty cells in the pivot grid.
This section allows you to customize the height and width of the pivot grid cells.
This option allows you to customize the height of content rows in the pivot grid.
This option allows you to customize the width of the content columns.
This option allows you to customize the width of the row headers (first column) in the pivot grid.
Pivot grid with default values.
Pivot grid with customized values.
This section contains properties related to the group bar (row and column headers), including show or hide, sorting, and filtering properties.
If this property’s checkbox is unchecked, the group bar (row and column headers) will be disabled. Checking this property will display the group bar.
Allow Sorting
allows user to enable and disable sorting property for group bar.
Allow Filtering
enables users to enable or disable the Filtering property for the group bar.
This section contains the show and hide properties for grand and subtotals of rows and columns.
This property allows users to show or hide the row’s grand total. If this property is unchecked, the row’s grand total in the image below will be disabled.
This property allows users to modify the text for row grand totals. The default text displayed for row grand totals is Grand Total
. When you change the text value in the row grand totals text box, the changes will be reflected in the row grand totals, as shown in the following image.
NOTE: The row grand totals text box is set to
Auto
by default, which uses the localizedGrand Total
text from the locale file for display. This allows us to modify the row grand totals text in multiple pivot grids simultaneously using localized text and localization.
This property allows users to show or hide the column’s grand total. If this property is unchecked, the column’s grand total in the image below will be disabled.
This property allows users to modify the text for column grand totals. The default text displayed for column grand totals is Grand Total
. When you change the text value in the column grand total text box, the changes will be reflected in the column grand total, as shown in the following image.
NOTE: The column grand totals text box is set to
Auto
by default, which uses the localizedGrand Total
text from the locale file for display. This allows us to modify the column grand totals text in multiple pivot grids simultaneously using localized text and localization.
This property allows users to show or hide the row’s subtotals. The image below is an example of a disabled subtotal for the row.
This property allows users to show or hide the column’s subtotals. The image below is an example of a disabled subtotal for the column.
You can edit the field settings.
The Show No Data Item
feature displays the empty data cell of the selected Name
from the Edit Field Settings
. For example, if the Show No Data Item for ShipCity is checked, it will display all the empty data points as empty cells, similar to the image below.
In the above image, all cities except Campinas have empty data, so they are displayed as empty cells.
This option allows you to align the Column header, Row header, and Values to either the left, right, or center.
Row Header - You can align the row header to the left, center, or right. The default is left.
Column Header - You can align the column header to the left, center, or right. The default is left.
Value - You can align the Value cells to the left, center, or right. The default is right.
This section explains how to format the pivot grid cells.
This allows you to select the color for the group panel’s background. The default value is #e9e9e9
.
This allows you to select the color for the header row’s background. The default value is #eeeeee
.
This allows you to select the color for the header row’s foreground. The default value is #333333
.
You can define the column value represented as simple text or condition-based formatted text. This lists the columns added to the pivot grid widget.
Select value as the display type to represent the column values as they are.
Select Advanced settings to configure conditions and apply color to the cells based on those conditions. Click here for more details.
Using advanced settings option, you can customize the pivot grid as a heatmap.
properties
panel, under the Formatting
section, select the field name configured in the value, then click the Advanced Settings
radio button.Customize
button to open the Advanced Settings
.Save
button.You can achieve this by applying date formatting to the configured fields.
This section allows you to customize the height and width of the pivot grid content.
Pivot grid with auto font-size.
Auto Font Size and Font Size
By default, the auto font size property is enabled, so the font size of the headers will be rendered based on the resolution. If this property is unchecked, the font size of the header can be customized.
Auto Font Size and Font Size
By default, the auto font size property is enabled, so the font size of the pivot grid content elements will be calculated based on the resolution. If this property is unchecked, the font size can be customized.
To configure the linking to a URL or dashboard with the widget through its settings, refer to Linking for more details.
Filter
allows you to apply filtering based on data field.
This allows you to define this pivot grid widget as a master widget, so its filter action can be listened to by other widgets in the dashboard.
This allows you to define this pivot grid widget to ignore responding to the filter actions applied on other widgets in the dashboard.
Through this option, you can enable/disable hierarchical top N filtering. While applying Top N filter with multiple dimension columns, the data returned can be customized based on whether the filtering needs to be done as flat or based on the hierarchy of dimension columns added.
When the Hierarchical Filter
option is enabled, the Top N will be applied to each individual column separately based on the number set for each column.
If you have the requirement to highlight data based on certain conditions, you can enable the advanced settings option.
properties
pane, under the Formatting
section, click the Advanced Settings
radio button.Advanced Settings
dialog.Select the mode
and enter the conditions as required, then click the Save
button to apply.
Now, the widget visualization will be updated based on the conditions.
Refer to the following sections for detailed steps on using the Gradient and Rule modes.
You can customize the background color of the pivot grid cells using the gradient-based advanced settings. This is the default mode.
The configured value fields. The “Based on Field” option cannot be changed in the advanced settings dialog.
The summary type of the configured value field.
You can define your range by entering the low, mid, and high values.
NOTE: This is optional, if no value is entered, the ranges will be auto-calculated based on the minimum and maximum values from the data source.
This allows you to customize the cell colors and value font style
of the pivot grid cells based on one or more numerical/text conditions.
You can assign a meaningful name to the applied conditions.
Choose the condition for the measure field from the highlighted conditions.
You can specify the condition value.
This option allows you to define the foreground color of the pivot grid cell for this condition.
Allows you to define the pivot grid cell background for this condition.
This option allows you to choose the font style for the title (Bold, Italic, Underline, and Superscript
).
Click on Add Condition
to specify a new condition.
Click on the delete button to remove the existing condition.
This option allows you to align the widget title to the left, center, or right.
This option allows you to apply a specific text color
to the widget title.
When enabled, the font size of the title will automatically adjust if the screen resolution varies.
Font Size
This option allows you to apply a specific font size to the widget title if the Title Auto Font Size
is disabled. The value can range between 10 and 44.
When enabled, the font size of the subtitle will automatically adjust if the screen resolution varies.
Font Size
This option allows you to apply a specific font size to the widget subtitle if the Subtitle Auto Font Size
is disabled. The value can range between 10 and 32.
When enabled, the padding of the widget container will automatically adjust if the size of the widget varies.
Padding
This option allows you to customize the padding of the widget container if the Auto Padding is disabled. The value can be between 0 and 25.
This option allows you to toggle the visibility of the border surrounding the widget.
This option allows you to apply a specific radius to the widget corners if the Show Border
is enabled. The value can range between 0 and 10.
You can adjust the transparency from 0 to 1.
This option allows you to toggle the visibility of the shadow
surrounding the widget.
This option allows you to enable or disable the widget title of the pivot grid.
This option allows you to enable or disable the maximized mode of the pivot grid. The visibility of the maximize icon in the widget header will be determined based on the setting in the viewer.
This allows you to enable or disable the CSV export option for the pivot grid. Enabling this allows you to export the summarized data of the widget view to CSV format in the viewer.
This allows you to enable or disable the Excel export option for the pivot grid. Enabling this allows you to export the summarized data of the widget view to (.xlsx or .xls) format in the viewer.
This allows you to enable or disable the image export option for the pivot grid. Enabling this allows you to export the view of the widget to image format (.jpg), (.png), or (.bmp) in the viewer.
This allows you to enable or disable the PDF export option for the pivot grid. Enabling this allows you to export the view of the widget to pdf format in the viewer.
This allows you to enable or disable comment for the dashboard widget. For more details, refer to this refer to the following link: Dashboard Widget Comments.
This allows you to visualize the raw data associated with a widget at runtime.
This option allows you to pin the widget.
Blog Post – 7 Unique Features of Pivot Table