QPR ProcessAnalyzer Pivot Table: Difference between revisions
Line 42: | Line 42: | ||
=== Sort by Measures === | === Sort by Measures === | ||
It's also possible to sort the pivot grid rows using a certain measure from a certain column. If there is only one measure, the following settings can be used: | |||
<pre> | |||
{ | |||
"dataSourceSettings": { | |||
"valueSortSettings": { | |||
"headerText": "New York", | |||
"sortOrder": "Ascending" | |||
} | |||
} | |||
} | |||
</pre> | |||
If there are several measures, the individual measure need to be specified as follows: | |||
<pre> | <pre> | ||
{ | { |
Revision as of 16:28, 1 September 2020
The Pivot Table visualizes measures divided into several dimensions where one dimension can be shown as rows and another dimension as columns. Compared to the Table, the rows in the Pivot Table work similarly, but unlike the Table, in the Pivot Table the number of columns changes dynamically based on number of values in the dimension.
Pivot Table Functionalities
Pivot Table has the following functionalities:
- Pivot table is able to show several measures at the same time.
- The first dimension is linked to the pivot table rows and the second dimension is linked to the columns.
- The third dimension is linked to the rows as a sub level, and the fourth linked to the columns as a sub level (the sub levels can be expanded from the arrow icon).
- Rows and columns in the pivot table are sorted based on the Sorting settings (in the General tab). If needed, use the custom sorting to define all column sortings
- Shown data appearance can be changed in the measure and dimension settings, using following settings: Round to decimals, Measure unit, Data type, and Date format.
- Measures in the pivot table are aggregated to the Grand Total column. The aggregation is determined automatically from the measure settings (e.g. aggregation used there). If needed, override the aggregation with the desired one (see the configuration examples). Available aggregations are: Sum, Min, Max, Avg, Product, Count, DistinctCount, PopulationStDev, SampleStDev, PopulationVar and SampleVar.
- Pivot table can be exported as Excel, pdf and csv (open settings, General tab and Export Table as...).
Examples
Change aggregation method
This example sets the aggregation method for the first measure to sum and the second measure to average.
{ "dataSourceSettings": { "values": [ { "type": "Sum" }, { "type": "Avg" } ] } }
Hide Grand Totals
Grand totals can be hidden separately for rows and columns.
{ "dataSourceSettings": { "showColumnGrandTotals": false, "showRowGrandTotals": false, } }
Sort by Measures
It's also possible to sort the pivot grid rows using a certain measure from a certain column. If there is only one measure, the following settings can be used:
{ "dataSourceSettings": { "valueSortSettings": { "headerText": "New York", "sortOrder": "Ascending" } } }
If there are several measures, the individual measure need to be specified as follows:
{ "dataSourceSettings": { "valueSortSettings": { "headerText": "New York#Case count", "sortOrder": "Descending" "headerDelimiter": "#" } } }
Show Tooltip
{ "showTooltip": true }