Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Pentaho 5.0 Reporting by Example: Beginner's Guide

You're reading from  Pentaho 5.0 Reporting by Example: Beginner's Guide

Product type Book
Published in Aug 2013
Publisher Packt
ISBN-13 9781782162247
Pages 342 pages
Edition 1st Edition
Languages
Author (1):
Mariano, GARCIA MATTIO Mariano, GARCIA MATTIO

Table of Contents (23) Chapters

Pentaho 5.0 Reporting by Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. What is Pentaho Report Designer? 2. Installation and Configuration 3. Start PRD and the User Interface (UI) Layout 4. Instant Gratification – Creating Your First Report with PRD 5. Adding a Relational Data Source 6. Adding Groups 7. Adding Parameters 8. Using Formulas in Our Reports 9. Adding Charts 10. Adding Subreports 11. Publishing and Running Reports in Pentaho BA Server 12. Making a Difference – Reports with Hyperlinks and Sparklines 13. Environment Variables, Stylesheets, and Crosstabs 14. PRD Reports Embedded in Web Applications Sakila DB Data Dictionary Pop Quiz Answers 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}