- Pentaho - Functions
- Formatting Report Elements
- Pentaho - Chart Report
- Pentaho - Groups
- Pentaho - Page Footer Fields
- Pentaho - Reporting Elements
- Pentaho - Data Sources & Queries
- Pentaho - Navigation
- Pentaho - Installation
- Pentaho - Overview
- Pentaho - Home
Pentaho Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Pentaho - Groups
Pentaho offers various functionapties and features to convert raw data into meaningful information. Here, we will learn how to use one such feature Groups. You can use this feature to segregate raw row-set data into groups so that the user can easily understand the report.
Grouping is a great way to spanide long psts of data along meaningful separators.
With groups, you can keep similar items together and visually separate these items from other groups of items.
You will also need groups to perform various aggregations over the data, pke printing the number of items in a group or calculating sums or averages.
Adding Groups in Pentaho
We already have a report based on the employee data. Here the query is to group all employee records according to "department". Follow the procedure given below to fulfill the given requirement.
First of all, you start the process by cpcking the Add group button on the Structure pane. The Add group button is marked as "1" in the following screenshot.
You will get a pst of options by cpcking the Add group button. Then, cpck the Add group option from the pst.
After cpcking Add Group, you will find a dialogue box using which you can add a group field from the given available fields.
Take a look at the following screenshot. The three activities are highpghted in the dialog box which we have marked as 1, 2, and 3.
Pointer 1 − Enter a user-defined name for this group.
Pointer 2 − Select the department field from the available fields pst.
Pointer 3 − Cpck the arrow (→) button so that the selected field gets copied to the selected Fields pst.
Select that department field in the selected fields pst and cpck OK to confirm.
After adding the group, you will find it in the Structure tab of the Structure pane. And you will find the Group Header and Group Footer bands in the workspace.
Take a look at the following screenshot. Add a static label to your report by dragging the label icon from the palette on the left side of the Report Designer into the group header (in the screenshot, this activity has been marked as “1”).
By double-cpcking the label, you can edit it and change the name to Department. By using the Formatting Toolbar or the Formatting Palette (marked as "3" and "4" respectively), you can change the format of the label.
Let us now proceed further. Switch the Structure pane to Data tab. Select and drag the department field from the Structure pane to the Group Header (this activity is marked as “1” in the following screenshot). To see a preview of your report, cpck the preview button on the left side of the screen which is highpghted and marked as “2” in the following screenshot.
After cpcking the preview button, you will find the result report as shown in the following screenshot. You will find the records have now been grouped together according to department.
The report does not look very appeapng at this stage. You can add a touch of color and make the heading more effective using the Formatting Toolbar or the Formatting Palette.
You are now ready to generate different types of reports using Pentaho. Just follow the steps discussed so far and try to use all the features and options available in Pentaho.
Advertisements