How to use the Pentaho Reporting Designer

Last updated on Sep 27 2021
Jayesh Chettiyar

Table of Contents

How to use the Pentaho Reporting Designer

Pentaho – Data Sources & Queries

In this blog, we will learn to use the Pentaho Reporting Designer by taking an example. We will create a report on the employee database to produce a quick overview of every employee. We will create our first report by adding a data source and passing queries to the Pentaho Designer.
Before using Pentaho Report Designer, create a database named employeedb and in that database, create a table named employee using the following query.

CREATE TABLE 'employee' (
'id' integer NOT NULL,
'name' varchar(20),
'designation' varchar(20),
'department' varchar(20),
'age' integer,
PRIMARY KEY ('id')
)

Insert the following records into the table.

Id Name Designation Department age
1201 ‘satish’ ‘writer’ ‘Tuto_Write’ 24
1202 ‘krishna’ ‘writer’ ‘Tuto_Write’ 26
1203 ‘prasanth’ ‘php developer’ ‘Tuto_develop’ 28
1204 ‘khaleel’ ‘php developer’ ‘Tuto_develop’ 29
1205 ‘raju’ ‘HTML developer’ ‘Tuto_develop’ 24
1206 ‘javed’ ‘HTML developer’ ‘Tuto_develop’ 22
1207 ‘kiran’ ‘Proof Reader’ ‘Tuto_Reader’ 28
1208 ‘pravenya’ ‘Proof Reader’ ‘Tuto_Reader’ 30
1209 ‘mukesh’ ‘Proof Reader’ ‘Tuto_Reader’ 28
1210 ‘sai’ ‘writer’ ‘Tuto_writer’ 25
1211 ‘sathish’ ‘graphics designer’ ‘Tuto_designer’ 26
1212 ‘viswani’ ‘graphics designer’ ‘Tuto_designer’ 24
1213 ‘gopal’ ‘manager’ ‘Tuto_develop’ 29
1214 ‘omer’ ‘manager’ ‘Tuto_writer’ 32
1215 ‘shirjeel’ ‘manager’ ‘Tuto_Reader’ 32

If you want to manipulate the data contained inside the table, the best choice is to use SQL. But if you want to create a report based on the data, Pentaho Reporting is the best option. Our task is to pass an SQL query to the Pentaho Reporting designer tool and select respective fields (which are presented in the report) and present it on the Details of the report sheet.
Before moving further, make sure you are well versed with all the navigation options available in Pentaho (explained in the previous chapter). Now that we have a data source, let us proceed further and try to understand how to use Pentaho to generate a professional report.

Steps to Generate a Report using Pentaho

Follow the steps given below to create a report from scratch without using Report Design Wizard.
Step 1: Create a New Report
You can create a new report definition file by clicking “new report” on the welcome pane or go to “File → new”.

pentaho 33
pentaho

Step 2: Add a Data Source
The Structure Pane on the right-hand side provides a view of the visual elements of a report. The definition of the data source will be on the Data tab; it allows to define where the report data comes from and how this data is processed during the report processing.
A report generally displays the data that is supplied by a data source in the form of a table, whereas a report definition defines how the report is to be formatted or printed. As shown in the following screenshot, select the Data tab from structure pane.

pentaho 34
pentaho

In the Data tab, right-click on the Data Sets and select JDBC to add a data source. Generally, in the list of options, you can select any other option based on the requirement. It means, if you have an XML file as your data source, then choose XML option from the list. Take a look at the following screenshot. Here we are selecting the JDBC option to add a database as data source.

pentaho 35
pentaho

After having selected the JDBC option as the data source, you will find a dialog box as shown in the following screenshot.
We have already chosen MySQL database for the data source; therefore we have to select the Sample Data (MySQL) option in the left-side panel of the dialog box (marked as pointer “1”) in the given screenshot. Pointer “2” is meant for editing the connection statement and URL to interact with the database.

pentaho 36
pentaho

The following screenshot shows a dialog box where you can define your connection statement and the URL for the database. We need to carry out four operations on the following screen (which are highlighted using pointers).
• In the connection type list, select MySQL − We have already chosen MySQL as the database (data source).
• In the Access list, select Native (JDBC) − Through JDBC connection, we can access the database.
• In the Settings section, we must mention the Host Name (localhost), Database name (employeedb), port number (3306), username (root), and the password (as per you system).
• Test the connection statement by clicking the Test button.
Finally, click the OK button to confirm the database connection.

pentaho 37
pentaho

Step 3: Add a Query
Take a look at the following screenshot. The dialog box presents the available saved queries available through the database connection.
• The Available Queries block on the right side of the dialog box displays a list of all the available queries.
• The Query Name block displays the selected query name which is selected in the above available queries list.
• The Query block displays the query statement. If no queries are available or if you want to create a new query, click the “+” button which is highlighted as pointer “1” in the following screenshot.

pentaho 38
pentaho

While clicking the “+” button, you can create a query by editing a name on the Query Name block as select_all_records and use the following query statement in the Query block.

SELECT
employee.id, 
employee.name, 
employee.designation,
employee.department,
employee.age 
FROM
employee 
LIMIT
15

After adding the query, you should get the following dialogue box. Click the preview button.

pentaho 39
pentaho

After clicking the preview button, you will find all the employee table records in a separate dialog box as shown in the following screenshot. Click the close button.

pentaho 40
pentaho

Then, click the OK button to submit the query. After submitting the query, you will find all the table field names and their datatypes under the query name on the right-side structure pane, as shown in the following screenshot. Here, the maximized box is the structure pane which is placed on the right side of the screen.

pentaho 41
pentaho

We have so far added a data source and a query to the Pentaho Reporting Designer. Now, we have to add elements into the workspace to create a report.

Pentaho – Reporting Elements

Most reporting elements can easily be added by dragging and dropping them from the Data pane to any of the bands on the workspace (mostly Details band).
Here we will design the report based on the output produced by the query.
The resultant query fields are the reporting elements which are highlighted in the following screenshot. Those are − id, name, designation, department, and age.

Adding Reporting Elements

After adding the query to the Reporting designer, the resultant fields appear in the data pane, as shown in the following screenshot.

pentaho 42
pentaho

Now, drag the required fields (fields you want to display in the report) from the Structure Pane into the Details Band at the center of the main workspace.
Take a look at the following screenshot. It shows the direction to drag the age field from the structure pane.

pentaho 43
pentaho

After arranging all the fields in the Details band, you can see the report view by clicking the view button which is pointed as “1” in the above screenshot.
After clicking the view button, the result report will be as shown in the following screenshot. In the workspace, you will find the values of all the fields (which are specified in the Details tab).

pentaho 44
pentaho

Now, if you want to go back to the design mode, then click the Design symbol marked as “1” in the following screenshot.

pentaho 45
pentaho

So, this brings us to the end of blog. This Tecklearn ‘How to use Pentaho Reporting Designer’ blog helps you with commonly asked questions if you are looking out for a job in Pentaho BI. If you wish to learn Pentaho BI and build a career in Business Intelligence domain, then check out our interactive, Pentaho BI Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

Pentaho BI Certification Training

Pentaho BI Training

About the Course

Pentaho BI Training from Tecklearn teaches you how to develop Business Intelligence (BI) dashboard using Pentaho BI tool from scratch. Pentaho is an open-source comprehensive BI suite and provides integration with Hadoop distribution for handling large dataset and doing reporting on top of it. This course explores the fundamentals of Pentaho Data integration, creating an OLAP Cube, integrating Pentaho BI suite with Hadoop, and much more through the best practices. Our Online Pentaho Training Course also provides real-time projects to enhance your skills and successfully clear the Pentaho Business Analytics Certification exam.

Why Should you take Pentaho BI Training?

• The average annual pay for a Pentaho Developer is $124828 a year. -ZipRecuiter.com.
• Around 2500 websites globally are using Pentaho BI and it has a market share of around 3% globally.
• Pentaho is a suite of Business Intelligence products, which provide data integration, OLAP services, reporting, dashboarding, data mining and ETL capabilities. Pentaho is a one stop solution for all business analytics needs.

What you will Learn in this Course?

Data Modelling
• Why need Data Modelling
• Data Modelling Scope and Benefits
• Data Model Analogy
• Case Study
Introduction to Pentaho BI Suite
• Overview of Pentaho Business Intelligence and Analytics tools
• Pentaho Data Integration (PDI)
• Pentaho Report Designer (PRD)
• Pentaho Metadata Editor (PME)
• Pentaho Schema Workbench (PSW)
• Dashboard Capabilities
Installation
• Installation of Java
• Installation steps for Pentaho ETL Tool
• Spoon Installation
• Spoon Overview
• Connection to Database
Retrieving Data from Flat or Raw Files using Pentaho
• Working with Flat Files or Delimited Files
• Different Use Cases
• Read Data from different Delimited Files using Pentaho
Clustering in Pentaho
• Basics of clustering in Pentaho Data Integration
• Creating a database connection
• Working with CSV Files
Pentaho Report Designer
• Designing Basic Report containing Graphical Chart
• Conditional Formatting and Studying the PRPT File Format
• Building a Basic Report in PDF Report
• Data Source Connection and Query Designer
• Working with Group (Group Header, Group Footer)
• API Based Reporting
Pentaho Data Integration – Transformation
• What is Data Transformation
• Step, Hop, Variable
• Various Input and Output Steps
• Transformation Steps, Big Data Steps and Scripting
Different Types of Transformation
• Transformation Steps in Detail
• Add sequence and use calculator
• Generating Output
• Data Validation
Slowly Changing Dimensions (SCD)
• Slowly Changing Dimensions,
• SCD Type I
• SCD Type II
• Deploying SCD
Pentaho Dashboard
• Pentaho Dashboard
• Passing parameters in Report and Dashboard
• Drill-down of Report
• Deploying Cubes for report creation
• Working with Excel sheets
• Pentaho Data integration for report creation
Understanding Cube
• What is a Cube
• Report and Dashboard creation with Cube
• Creation and benefits of Cube
Pentaho Analyzer
• Pentaho analytics for discovering
• Blending various data types and sizes
• Advanced analytics for visualizing data across multiple dimensions
Pentaho Data Integration (PDI) Development
• PDI steps used to create an ETL job
• PDI / Kettle steps to create an ETL transformation
Pentaho Administration
• Creating and Managing Users and Roles
• Security
• Performance Tuning
• Dashboard Creation with Advance Features

0 responses on "How to use the Pentaho Reporting Designer"

Leave a Message

Your email address will not be published. Required fields are marked *