Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Pentaho Data Integration 8 CE - Third Edition

You're reading from  Learning Pentaho Data Integration 8 CE - Third Edition

Product type Book
Published in Dec 2017
Publisher Packt
ISBN-13 9781788292436
Pages 500 pages
Edition 3rd Edition
Languages

Table of Contents (23) Chapters

Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Getting Started with Pentaho Data Integration Getting Started with Transformations Creating Basic Task Flows Reading and Writing Files Manipulating PDI Data and Metadata Controlling the Flow of Data Cleansing, Validating, and Fixing Data Manipulating Data by Coding Transforming the Dataset Performing Basic Operations with Databases Loading Data Marts with PDI Creating Portable and Reusable Transformations Implementing Metadata Injection Creating Advanced Jobs Launching Transformations and Jobs from the Command Line Best Practices for Designing and Deploying a PDI Project

Normalizing data


Some datasets are nice to view but complicated for further processing. Take a look at the following information about product sales, aggregated by year and product line:

Product sales

Suppose that you want to answer the following questions:

  • Which product line was the best sold?
  • How many cars did you sell (including Classic and Vintage)?
  • Which is the average price per product sold?

The dataset is not prepared to answer these questions, at least in an easy way. In order to simplify the task, you will have to normalize the data first, that is, convert it to a suitable format before proceeding. The next subsection explains how to do that.

Modifying the dataset with a Row Normaliser step

The Row Normaliser step takes a pivoted dataset and normalizes the data. In simple words, it converts columns to rows. In order to explain how to use and configure the step, we will normalize the data shown earlier. Our purpose, in this case, will be to have something like this:

Product sales normalized...

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}