Data Grouping on Crosstabs for Studio Reports
Applies to: Kyvos Reporting
As business requirements grow in complexity, the need for multidimensional analysis increases. Kyvos Reporting Studio supports grouping in crosstab reports, enabling you to use multiple fields in row and column headers to create hierarchical groupings.
When to Group
Use grouping when the summary field depends on multiple levels of dimensional information. Some common scenarios include:
Zone and Area Expenditure Report: Display monthly expenditures grouped by expenditure heads, departments, and zones.
Flight Occupancy Analysis: Show quarterly occupancy grouped by sector and flight number.
Important
Ensure the grouping sequence is logical. For example, grouping first by city and then by state would result in incorrect output.
How to Group
To apply grouping in a crosstab:
Select multiple fields for row or column headers.
Maintain the correct sequence:
The field selected first becomes the outer group (major group).
The field selected later becomes the inner group (minor group).
This applies to both row headers and column headers.
Example: Grouping in a Crosstab Report
To create a report like the one shown in the Grouping of Data example:
Required Fields in Query:
ExpenditureTypeDeptCodeZoneCodeBranchCodeExpAmt
Steps to Create the Crosstab:
Set up the data source:
Select the appropriate connection.
Create or select an SQL query.
Refresh fields.
Insert a Crosstab:
Place the crosstab component on the Report Header section.
Assign headers and summary:
Set
ExpenditureTypeas the first row header.Set
DeptCodeas the second row header.Set
ZoneCodeas the first column header.Set
BranchCodeas the second column header.Set
ExpAmtas the summary field.
Apply formatting:
Format row headers, column headers, and summary fields for clarity.