Pentaho Interactive Reports

The intuitive, drag-and-drop, browser-based design environment for Interactive Reports enables you to quickly add elements to your report and format them any way you like. You do not need any special expertise to use Interactive Reports. You can also display Interactive Reports in a dashboard in the User Console.

Here is a list of the main Interactive Reports features.

  • Drag-and-drop report design

  • Font selection

  • Column resizing

  • Column sorting

  • Ability to rename column headers

  • Copy and paste functionality

  • Unlimited undo and redo functionality

  • Ability to output reports as HTML, PDF, CSV, Excel Workbook, or Excel 93-2003 Workbook files

  • Ability to display reports in a dashboard

Before you can create Interactive Reports, you must have access to a data source. The data source for Interactive Reports is based on the Pentaho relational data model, also known as the metadata data model. This model enables the Pentaho system to present data in reports in meaningful business terms instead of in abstract terms. For example, a table referred to as CUST_TBLE or ORDR_TBLE in the data model can be presented in your report as Customers and Orders.

In this topic

Get started

By going to the Browse Files perspective in the User Console, you can also view an editable version of the Vendor Sales report. Switch to the Browse Files perspective in the User Console, then follow these steps.

  1. In the Folders pane, click to expand the Public folder, then click to highlight the Steel Wheels folder.

  2. In the Files pane, click Vendor Sales. Then click Edit in File Actions.

    The Opened perspective appears with the Interactive Reports and toolbars active.

    Create New Interactive Report Panel
Item
Name
Function

1

Opened view

Displays quick access buttons across the top to create and save new Analyzer reports, Interactive Reports, and Dashboard Designer reports. Opened reports and files show as a series of tabs across the page.

2

Data, Formatting, and General panels

Use the Data panel to drag information into a column or a row on the report. Your report display changes as you drag items onto the Report Canvas. Use Find to search for a specific field.

Delete a level or measure from your report by dragging it from the Layout panel to the trash can that appears in the lower right corner of the Report panel.

The Formatting panel allows you to change the font size and type on the opened report.

The General panel allows you to set preferences, select a paper size for printing, and select from a variety of templates for your report.

3

Report canvas

Shows a dynamic view of your Interactive report as you work to build it. The look of your report changes constantly as you work with Data, Formatting, and General panels to refine it.

4

Interactive toolbar and filters

Use the toolbar functions to undo or redo actions, hide lists of fields, add or hide filters, disable the auto-refresh function, adjust settings, change the view of your report, and limit the number of rows queried. Use the filters panel to display a list of filters applied to the active report, or edit or delete filters.

Create an Interactive Report

These steps guide you through making an Interactive Report.

  1. From User Console Home, click Create New, then Interactive Report.

    Create New Interactive Report
  2. Choose a data source for the report from the Select Data Source dialog box. Click OK.

    Interactive Report Select Data Source dialog box
    circle-info

    If no data source is listed, contact your administrator.

  3. To add your first column, click and drag a field from the Data tab in the left panel.

  4. Drag the field over the report canvas on the right until a vertical line appears, then drop the field in place. This field becomes a column in your report.

    Interactive Report Create Column
  5. Continue to drag and drop fields on to the report canvas until you have all of the columns of your report in place.

    Interactive Report Add Columns

    You can rearrange the order of the columns by clicking on the headers and dragging the columns to the right or left of their current location. When a green line appears, you can drop the column there. You can also resize your columns by selecting the bar to the right or left of the column header and dragging it until your columns are the correct size.

  6. Rename your report by double-clicking Untitled in the Report Canvas, then typing a name in the field that appears.

    Rename a report
  7. Click Save As on the toolbar.

    When the Save As dialog box appears, type a file name for your report, choose a location to save it in, and click Save.

Your new interactive report is created and saved in the location of your choice.

Edit an Interactive Report

Use these steps to edit your Interactive Report.

  1. Log in to the User Console and click Browse Files to locate the folder containing your report.

  2. Right-click the report name in the Files pane and choose Edit from the Folder Actions pane.

    Alternatively, double-click the report name to open it, then click Edit in the User Console toolbar.

    Edit Your Interactive Report
  3. Edit your report as needed.

  4. Save your report.

Customize an Interactive Report

Use these options to fine-tune an interactive report.

You can change columns, headers, formats, page setup, and templates.

Reorder and resize columns

Drag a column header to a new location.

Or, select the column header menu. Then select Move > Left or Right.

Move Interactive Reports columns

Resize a column by dragging the header divider left or right.

Change Interactive Reports column widths

Change a column header name

Double-click the column header.

Type the new name. Then press Enter.

Change Column Header Names

Design report headers and footers

Double-click the upper or lower report corners.

Design Report Headers and Footers

Use the dialog box to update the header or footer:

  • Replace any existing text.

  • Insert a date and time stamp.

    • Select Date. Then press Enter.

    • Optional: Add custom text, like Today: $(report.date).

  • Insert a page count.

    • Select #/Pages. Then press Enter.

Freeze the top row in HTML output

Select Sticky HTML headers rows on the General tab.

This freezes the header row for HTML (Single Page) output.

Format column values

Select a column.

Select the Formatting tab.

Pick the format for the column values.

Change Data Formats
circle-info

Some formats come from the data source metadata. You can override them.

Copy and paste formatting

Use Copy formatting and Paste formatting on the Formatting tab.

This applies the same format to other columns.

Copy and Paste Formatting

To remove your changes, select the column. Then select Remove Formatting.

Customize page format and orientation

Interactive Reports uses Letter (8.5 x 11 inches) and Portrait by default.

Use Page Setup to change the page size or orientation.

Change Page Format and Orientation

Change page format

  1. Select the General tab. Then select Page Setup.

  2. In Page Setup, select a page format.

  3. Optional: Update the margins.

  4. Select OK.

Change page orientation

  1. Select the General tab. Then select Page Setup.

  2. In Page Setup, select an orientation icon.

  3. Select OK.

Use a different report template

Select a different template from the General tab.

Report Template General tab
  1. Select the General tab.

  2. Use the arrows to browse templates.

  3. Double-click a template to select it.

  4. When prompted, select Yes or No to keep formatting.

The report updates to match the new template.

Add logos

You can add logos to interactive reports by replacing the default logo file used by report templates.

This requires access to the Pentaho Server file system. If you do not have access, contact your administrator or Pentaho Support.

Before you start

  • Prepare a logo image in PNG format.

  • Back up the existing Logo.png and classic-engine.properties files.

  • Plan for a server restart if you change alignment settings.

circle-exclamation

Add a custom logo to an interactive report template

  1. In the User Console, go to Home.

  2. Select Create New > Interactive Report.

  3. In Select Data Source, select a data source.

  4. Select OK.

  5. Select the General tab.

  6. Select Select to open the template list.

  7. Select a template that shows the red Change Me! logo.

    Templates are stored here:

  8. Open the tenant image folder:

  9. Rename the existing Logo.png to keep a backup.

    Example: Logo-orig.png

  10. Rename your custom logo file to Logo.png.

  11. Refresh the template.

  12. Confirm the new logo renders correctly.

Change logo alignment

You can set the logo alignment to left, right, or center.

  1. Open this folder:

  2. Open classic-engine.properties in a text editor.

  3. Find this property:

    org.pentaho.reporting.engine.classic.core.environment.pirTemplateLogoAlignment

  4. Set the value to left, right, or center.

    The default value is right.

  5. Restart the server.

Multi-tenancy support for logos

Each tenant can have its own Logo.png. The tenantId value is stored in the session.

The default tenant is /pentaho/tenant0. The default logo is stored here:

For multiple tenants, create one folder per tenant ID. Store that tenant’s logo in the folder as Logo.png.

Read and export in view-only mode

After you save your Interactive Reports, browse for it in your Pentaho repository. You can quickly identify Interactive Reports by their icon. When the report appears, notice that the toolbar that allows you to perform certain actions on the report.

Interactive Report View Only Toolbar

Hover your mouse over the icons in the toolbar to see which actions you can take. These actions include:

  • Exporting a report as a PDF, HTML, CSV, Excel Workbook, or Excel 93 - 2003 Workbook file to be saved locally.

    • You can also export a report in Edit mode.

  • Adding filters for viewing report data.

  • Rearranging the report layout, such as moving, sorting, and removing columns from the report.

You cannot save any changes to your report when you are in View-only mode. However, you can click Edit in the User Console toolbar to return to edit mode and save your changes.

Build large reports

If you are building Interactive Reports with a large amount of data, you might find that it is quicker to build the report if the data is not constantly refreshing or returning a large number of rows. You can manually refresh the report to view your results at any point in the process.

circle-info

When you are done designing the report, run the full data set by scheduling the report. See Schedule Reports.

You can limit how often you query the data while building your report to help reduce the amount of time required to refresh the report. Use the options in the Query Settings dialog box to adjust refresh times while you are building your report.

  • In the Data tab, click the Settings icon in the upper-right corner to open the Query Settings dialog box. Make changes as needed and close the dialog box when you are done.

Query Settings dialog box

Turn off auto-refresh

Design your report layout first, including calculations and filtering, without querying the database. Clear the Auto-Refresh option in the Query Settings dialog box.

Turn off auto-refresh mode to reduce the number of queries sent to the data source. Use it when the data source responds slowly.

When your layout is ready, turn Auto-Refresh back on. Data retrieval runs once and your report displays results.

Distinct values

By default, Interactive Reports queries data with the SQL SELECT DISTINCT statement when no GROUP BY is used. SELECT DISTINCT returns only distinct values. It can require an extensive sorting operation in the database.

To stop returning distinct values, clear Select Distinct in the Query Settings dialog box. This setting is saved with your report.

circle-info

If you are an administrator, right-click the toolbar and select View SQL. Check whether DISTINCT is included.

To clear Select Distinct by default for new reports, ask your system administrator. See the Administer Pentaho Data Integration and Analytics document.

Row limits and query timeouts

Limit the number of rows displayed while designing your report. Set Row Limit options in the Interactive Toolbar.

Limit how long a query runs. Select Query Timeout in the Query Settings dialog box and specify seconds.

Row limits and timeouts help avoid out-of-memory errors. They also reduce load on the database server.

If you exceed the system maximum row limit, a help message appears.

Interactive Report Row Limit Reached message

To change the system maximum row limit, ask your system administrator. See the Administer Pentaho Data Integration and Analytics document.

Use calculated fields

You can create calculated fields from fields in the data source. You can also build calculated fields from other calculated fields.

When you create a calculated field, the field appears in the Calculated Fields list. The function determines the values.

You can add calculated fields to columns or groups. This helps you build richer reports.

Generic functions like now() or 2+5 cannot be added to an empty layout. Add at least one column or group from a data source field first.

Calculated fields do not support these options:

  • Filter

  • Prompt

  • Sort

  • Aggregation

Create a calculated field

1

Open Calculated Fields

  1. Open the report where you want the calculated field.

  2. Select the Data tab.

  3. Scroll to the bottom of the tab.

  4. Find Calculated Fields.

Data tab with Calculated Fields
2

Open the Create Calculated Field dialog

Select the plus sign next to Calculated Fields.

The Create Calculated Field dialog appears.

Create Calculated Field dialog
3

Configure the calculated field

Set the values you need:

  • Display Name: Name shown in the report.

  • Category: Function category.

  • Select Fields: Fields you can insert into the formula.

  • Functions: Double-click a function to insert it into Formula.

    • For common formula functions, see the Pentaho Report Designer documentation.

  • Formula: The expression used to calculate values.

  • Data Format: Data type for the field.

    • Numeric

    • Date

    • Other

  • Description: Description of the selected function.

  • Return Type: The function return type.

    • Example: SUM(2, 3) returns an integer type.

    • Example: CONCATENATE("A", "B") returns a string type.

4

Save the calculated field

Select OK.

The calculated field is added to the list in the Data tab.

5

(Optional) Edit or use the calculated field

Right-click the calculated field for these actions:

  • Edit: Edit the calculated field formula.

  • Delete: Delete the calculated field.

  • Add To Report: Add the calculated field to columns in the layout.

  • Add To Groups: Add the calculated field to groups in the layout.

Advanced topics

Use these topics to extend what you can do in Interactive Reports.

Group and filter data

Group data to keep related items together.

Add filters to show only the data you want.

Group data

Group a report by one or more fields. Common groupings include region, product line, or both.

Use any of these methods:

  • Drag a column header above the report headers. Drop it when the green line appears.

  • Drag a field from the Data tab in the left pane. Drop it in the space above the report headers.

  • Create nested groups. Drag a second field under the first group.

After grouping, sort by clicking the arrows next to each group name. You can also create advanced filters to refine results.

When you’re done, click Save or Save As. Choose a location for the report.

Add filters

Filters restrict the data in a report. They help you focus on specific values.

Example: A report shows sales by product line. A filter on Quarter can restrict results to a single quarter. Add a region filter, such as Europe, to narrow results further.

To add filters:

  1. On the toolbar, click the plus sign (+) next to No Filters.

    A filter workspace appears above the report.

  2. From Available Fields, drag a field into the filter workspace.

    The filter dialog box opens.

  3. Select one or more values in the left list.

  4. Click the arrow to move them into the right pane.

  5. Click OK.

  6. Repeat for each field you want to filter on.

  7. Save your report.

The report updates to show only the selected values. Use Undo or Reset to revert changes.

Filter on date fields

Use date constraints to filter on a specific date.

  1. Open the Filters panel.

    Click Filters, or click (+) next to No Filters.

  2. Drag a date field into the Filters area.

    The filter dialog box opens.

  3. Choose a date constraint.

  4. Click the arrow to open the date picker.

    To create a date range, add two filters. Use one for the start date and one for the end date.

  5. Pick a date.

  6. Click OK.

The report updates as soon as you add the filter. The filter appears in the Filter box. An icon also appears next to the field in the Data tab.

To change the filter, click Edit. To remove it, click Delete.

Flag a filter as a dashboard parameter

Flag a filter as a dashboard parameter. This exposes the parameter in Dashboard Designer.

  1. Create a filter.

  2. In Parameter Name, enter the parameter name.

  3. Click OK.

  4. Save your report.

The parameter name appears on the Parameters tab in Dashboard Designer. You can edit parameters while working in Report Designer.

Create advanced filters

Create filters on multiple groups of fields. You can also filter on a single group.

Filters on multiple groups are called advanced filters. Drag fields into the Filter Panel.

Place items into multiple groups by moving them up or down. Create a hierarchy by indenting fields.

Apply a summary function

Assign a function that performs summary calculations. Apply it to numeric values in columns, groups, or the entire report.

  1. Click the down arrow next to a report column containing numeric values.

  2. Select Summary from the menu, then choose the summary type:

    Summary Type
    Description

    None

    No summary function assigned.

    Average

    Calculates the average value in a given column.

    Count

    Counts the items in a group or report, but does not require a numeric value.

    Count Distinct

    Counts the distinct occurrences of a certain value in a column; does not require a numeric value.

    Maximum

    Identifies the highest or largest value in a column.

    Minimum

    Identifies the lowest or smallest value in a column.

    Sum

    Calculates a total sum of the group or report (group level, and running total in the report footer).

  3. Save the report.

Apply an aggregate function

Assign an aggregate function to columns that contain numeric and non-numeric values in your report. Aggregate functions return a single value calculated from the values in a column.

  1. Click the down arrow next to a report column that contains numeric values.

  2. Select Aggregation from the menu, then choose the aggregation type:

    Function Name
    Description

    None

    No aggregate function assigned

    Average

    Calculates the average value in a given column

    Count

    Counts the items in a column; does not require a numeric value

    Count Distinct

    Counts the distinct occurrences of a certain value in a column; does not require a numeric value

    Maximum

    Identifies the highest or largest value in a column

    Minimum

    Identifies the lowest or smallest value in a column

    Sum

    Calculates a running total sum of the specified column

  3. Save the report.

Last updated

Was this helpful?