Book Image

Pentaho Business Analytics Cookbook

By : Sergio Ramazzina
Book Image

Pentaho Business Analytics Cookbook

By: Sergio Ramazzina

Overview of this book

<p>Pentaho Business Analytics 5 is a complete open source business intelligence suite, providing data integration, OLAP, reporting, data visualization, and data mining features.&nbsp; Pentaho Business Analytics Cookbook provides you with a valuable and detailed set of recipes that illustrate all the features of Pentaho Business Analytics 5, the new version of the popular BI platform. The book provides clear illustrations and simple examples, helping you learn the core topics visually.</p>
Table of Contents (19 chapters)
Pentaho Business Analytics Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Changing field properties at runtime with formulas


Formulas are a powerful mechanism in Pentaho Reporting to change report objects' properties dynamically at runtime. This recipe will show how we can set the cell's background color depending on the satisfaction of a specific business condition. Specifically, as a simple example, this recipe uses a formula to apply the following rules:

  • Set a red background to the Store Sales table's column cells whenever the sales amount for a specific cell is less than $200

  • Set a green background to the Store Sales table's column cells whenever the sales amount is greater than $700

Getting ready

For this recipe, you must have Pentaho Report Designer started.

How to do it...

The following steps detail how we can use formulas to change report objects' properties dynamically at runtime:

  1. From the Pentaho Report Designer menu, select the Open option under the File menu. The Open file dialog box opens. Go to the <cookbook_samples>/ch07/resources directory and choose...