Book Image

Pentaho 5.0 Reporting by Example: Beginner's Guide

By : Mariano, GARCIA MATTIO
Book Image

Pentaho 5.0 Reporting by Example: Beginner's Guide

By: Mariano, GARCIA MATTIO

Overview of this book

Open source reporting tools and techniques, such as PRD, have been comparable in quality to their commercial counterparts this is largely due to the market's marked tendency to choose open source solutions. PRD is a very powerful tool and in order to take full advantage of it you need to pay attention to the important details. Pentaho 5.0 Reporting by Example: Beginner's Guide clearly explains the the foundation and then puts those concepts into practice through step-by-step visual guides. Feeling confident with your newly discovered, desirable, skill you will have the power to create your very own professional reports including graphics, formulas, sub-reports and many other forms of data reporting.Pentaho 5.0 Reporting By Example: Beginner's Guide is a step-by-step guide to create high quality, professional reports. Starting with the basics we will explore each feature to ensure a thorough understanding to peel back the curtain and take full advantage of the power that Pentaho puts at our fingertips. This book gives you the necessary resources to create a great variety of reports. You will be able to make reports that contain sub-reports, include graphics, sparklines and so on. You will also be able to parameterize your reports so that the final user can decide what information to visualize. You will be able to create your own stoplight type indicators and drill down in your reports. and execute your reports from your own web application. Pentaho 5.0 Reporting By Example: Beginner's Guide lets you learn everything necessary to work seriously with one of the world's most popular open source reporting tools. This book will guide you chapter by chapter through examples, graphics, and theoretical explanations so that you feel comfortable interacting with Pentaho Report Designer and creating your own reports.
Table of Contents (23 chapters)
Pentaho 5.0 Reporting by Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating a new report


We will now create a new report that we will use in this chapter's exercises. We will create a JDBC data set that connects to the Sakila database, and we will establish its SQL query. Next, we will create two parameters to choose the year and month for which we want data, and finally we will add the Message object to show the period under analysis.

  1. We will create a new report and save it with the name 11_Adding_Charts.prpt.

  2. We will create a JDBC data set and configure it as follows:

    • Connections = sakila db

    • Query Name = Ratings

    • Query =

        SELECT film.rating, SUM(payment.amount) sum_amount, count(1) count_rental
        FROM payment
        INNER JOIN rental ON rental.rental_id=payment.rental_id
        INNER JOIN inventory ON inventory.inventory_id=rental.inventory_id
        INNER JOIN film ON film.film_id=inventory.film_id
        WHERE YEAR(payment.payment_date)=${SelectYear}
        AND MONTH(payment_date) = ${SelectMonth}
        GROUP BY film.rating
  3. We will create two parameters. The first...