Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Pentaho 5.0 Reporting by Example: Beginner's Guide

You're reading from   Pentaho 5.0 Reporting by Example: Beginner's Guide Learn to use the power of Pentaho for Business Intelligence reporting in a series of simple, logical stages. From installation in Windows or Linux right through to publishing your own Java web application, it's all here.

Arrow left icon
Product type Paperback
Published in Aug 2013
Publisher Packt
ISBN-13 9781782162247
Length 342 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Mariano, GARCIA MATTIO Mariano, GARCIA MATTIO
Author Profile Icon Mariano, GARCIA MATTIO
Mariano, GARCIA MATTIO
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. What is Pentaho Report Designer? FREE CHAPTER 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 A. Sakila DB Data Dictionary B. Pop Quiz Answers Index

Time for action – creating our first sparkline


We will modify our principal data set to practice each of the following points. We will create a subreport, and within it we will create and configure two sparklines.

  1. We modify the SQL query of our data set to conform to the needs of this guide. We add the field customer_id at the end of the list of fields in the SELECT statement. Our query should look like the following:

      SELECT country.country_id, country.country, customer.first_name,customer.last_name, SUM(payment.amount) sum_amount, payment.customer_id
      FROM payment 
      INNER JOIN customer ON customer.customer_id=payment.customer_id
      INNER JOIN address ON address.address_id=customer.address_id
      INNER JOIN city ON city.city_id=address.city_id
      INNER JOIN country ON country.country_id=city.country_id
      WHERE country.country_id IN (20,24,29,34,48,67,74)
      GROUP BY payment.customer_id
      ORDER BY country.country, customer.first_name

    In the Details section, beside the label Trend, we place a...

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 $19.99/month. Cancel anytime