Skip Headers

Oracle Fusion Middleware Report Designer's Guide for Oracle Business Intelligence Publisher
Release 11g (11.1.1)
Part Number E13881-02
Go to Table of Contents
Contents
Go to previous page
Previous
Go to next page
Next
View PDF

Creating BI Publisher Layout Templates

This chapter covers the following topics:

Introduction

Release 11g of Oracle BI Publisher introduces a new type of layout template. The BI Publisher Layout template enables end users to:

BI Publisher Layout Templates are created using the BI Publisher Layout Editor - a design tool that provides a WYSIWIG, drag and drop interface for creating pixel perfect reports in PDF, RTF, Excel, PowerPoint, and HTML. It also provides dynamic HTML output that supports lightweight interaction through a browser. This interactive output is featured in the figure below:

the picture is described in the document text

the picture is described in the document text

Notice the following features:

When to Use a BI Publisher Layout

BI Publisher layouts are best suited for reports of simple to medium complexity that do not require custom coding. Because the dynamic HTML view is only available for BI Publisher layouts, BI Publisher layouts must be used when there is a requirement to enable a report consumer to interact with the report (change sorting, apply filters, and so on).

Prerequisites and Recommendations

Launching the Layout Editor

Launch the layout editor in one of the following ways:

When Creating a New Report:

When Editing a Report:

  1. In the Report Editor:

    From the Thumbnail view, click Add New Layout.

    or

    From the List view, click the Create button on the layouts table toolbar.

  2. From the Create Layout region, click a predefined template to use to launch the layout editor.

When Viewing a Report:

You can also access the Layout Editor when viewing a report. Click Actions and then click Edit Layout. Note that the layout must have been created in the layout editor.

Selecting a Predefined Layout

When you creating a new layout, you are given the option of selecting a predefined layout to help you get started.

the picture is described in the document text

The Basic and Shared Templates offer common layout structures with specific components already added. Choosing one of the predefined layouts is optional, but can facilitate layout design. If your enterprise utilizes a common design that is not available here, you can add predefined layouts for your own use, or your Administrator can add more for all users.

Adding Shared Templates for All Users

To add predefined layout files to the shared directory for all users to access:

  1. Log in with Administrator privileges and navigate to the Catalog.

  2. In the Shared Folders directory, open the Components folder.

  3. Locate the Boilerplates report and click Edit.

  4. Click Add New Layout.

  5. Design or upload the layout.

    To design the layout: Click an existing boilerplate (or blank) to launch the layout editor. Insert the components to the layout. When finished, click Save and give your boilerplate a name. This layout will now display to all users in the Shared Templates region.

    To upload a layout: Click Upload to upload a predefined BI Publisher Template (.xpt file).

  6. Save the report.

Any BI Publisher Templates (.xpt) added to this report will be displayed to all users as a Shared Template.

Adding Personal Predefined Layouts

To add predefined layouts that are available to your account user only:

  1. Navigate to My Folders.

  2. Create a new report called "Boilerplates". This report will have not have a data model.

  3. Click Add New Layout.

  4. Design or upload the layout.

    To design the layout: Click an existing boilerplate (or blank) to launch the layout editor. Insert the components to the layout. When finished, click Save and give your boilerplate a name.

    To upload a layout: Click Upload to upload a predefined BI Publisher Template (.xpt file).

These layouts will be presented in the My Templates region when you create a new layout.

About the Layout Editor Interface

The following figure shows the Layout Editor:

the picture is described in the document text

The Layout Editor interface comprises the following:

About the Data Source Pane

The Data Source pane displays the structure of your data model and the data elements that are available to insert into your layout.

To insert a data element, select and drag it from the Data Source pane to the component in the layout.

The data type for each field is represented by an appropriate icon: number, date, or text.

The following figure shows the data source pane. Note that the icon beside each element indicates the data type:

the picture is described in the document text

The JOB_TITLE element is shown as text, the SALARY element is shown as a number, and the HIRE_DATE element is shown as a date data type.

Note: When you enter dates in the Layout Editor (such as a data comparison for a filter or for conditional formatting), use one of the following XSL date or time formats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS.

About the Components Pane

The Components pane contains the layout components that you can insert into a report. These components include charts, pivot tables, and images. To insert a component, simply drag and drop it to the layout.

You can also use the Insert menu to add components to your layout.

The following figure shows the Components pane:

the picture is described in the document text

About the Properties Pane

The Properties pane displays the properties for the selected component. The properties displayed are determined by the selected component. Some of the properties available in the Properties pane are also editable in the dynamic tab for the component.

Click a property value to edit it. The change is applied to the component when you move your cursor out of the field. Collapse or expand a property group by clicking the plus or minus signs beside the group name.

The properties available for each component are discussed in detail in the corresponding section for that component in this chapter. Note that if a property field is blank, the default is used.

The following figure shows a sample Properties pane for a table column header:

the picture is described in the document text

About the Static Toolbar

The Static toolbar extends on either side of the tabbed toolbar and is shown in the following figure:

the picture is described in the document text

Use it to perform the following functions:

About the Tabbed Toolbar

The Tabbed toolbar contains the following tabs:

Selecting and Deleting Layout Objects

Each of the component-specific tabs include the Select region.

About the Insert Tab

Use the Insert tab to insert report components and page elements. The following figure shows the Insert tab:

the picture is described in the document text

The Components group displays the report components that you can insert into your layout. To insert a component, select and drag the item to the desired location in the design area. For more information about each component, see its corresponding section in this chapter.

The Page Elements group contains page-level elements for your report. To insert a page break, the page number, or the total page number calculation, select and drag the component to the desired position in the layout.

Note: Page elements are intended for paginated output types, such as PDF and RTF. Using them in interactive or HTML output may have unexpected results.

The Page Layout Tab

The Page Layout tab is shown in the following figure:

the picture is described in the document text

The Page Layout tab contains commands to set up your layout.

Paper Options

Option Description
Orientation Choose Portrait or Landscape.
Paper Size Select from the following paper size options: Letter, Legal, A4, A3, Executive, B5, Com-10, Monarch DL, or C5. Note that the paper size will determine the dimensions of the layout area.

Header/Footer Options

Option Description
Page Header Click to insert a page header in your layout. By default, the page header appears on every page of a printed report, but can be configured to skip the first page.
To remove the page header, click Page Header again.
Page Footer Click to insert a page footer in your layout. By default, the page footer appears on every page of a printed report, but can be configured to skip the last page.
To remove the page footer, click Page Footer again.
Report Header Click to insert a report header to your layout. The report header appears only once at the beginning of the report.
To remove the report header, click Report Header again.
Report Footer Click to insert a report footer to your layout. The report footer appears only once at the end of the report.
To remove the report footer, click Report Footer again.

Setting Properties for Headers and Footers

The Properties pane enables you to set the following properties for headers and footers. To access the Properties pane, select the header or footer in the design region, then click Properties from the accordion pane on the left of the page.

For all report and page headers and footers:

For headers:

For footers:

View Options

Option Description
Grid Click to insert gridlines in the layout design area. The grid unit size will depend on the Display Unit selected. To remove the gridlines, click Grid again.
Ruler Click to insert a display ruler across the top of the layout design area. The ruler units will depend on the Display Unit. To remove the ruler, click Ruler again.

Display Unit

Select the unit of measure to display. This unit is used for the ruler and grid view options, as well as for any other function that displays a measurement, such as setting border widths and sizing grid cells. Options are: inch, px (pixel), cm (centimeter), and point (pt).

Interactivity: Event Configuration

The Configure Events feature enables you to configure how components of your layout respond to events triggered by a user when viewing the report in interactive mode.

The two types of events are:

Example of Filter Event Configuration

In this example the layout contains two charts and a table. The first chart shows salary totals by department in a pie chart. The second chart shows salary totals by manager in a bar chart. The table displays a list of employees and their salaries. This example is shown in the following figure:

the picture is described in the document text

In this report, if a user clicks on a value in the Salary by Department chart, you want the Salary by Manager chart and the Employees table to automatically filter to show only the managers and employees in the selected department.

The following figure shows the automatic filtering that occurs when a user clicks the Sales department section of the Salary by Department pie chart. The Salary by Manager chart automatically filters to display only the managers belonging to the sales department. The Employee table automatically filters to display only the employees in the sales department.

the picture is described in the document text

To Configure Automatic Filtering:

  1. On the Page Layout tab, click Event Configuration to display the Configure Events dialog.

    the picture is described in the document text

  2. In the Components column, click the layout component (lists, charts, and pivot tables are available to configure).

  3. Select Filter to enable automatic filtering in other report components.

  4. Select the report components in the Targets column to enable the automatic filtering based on interactive events in the selected component. To disable the automatic filtering for a target component, clear the box.

    The preceding figure shows that the Filter event is enabled for Chart 1 in the layout. Chart 2 and Table 3 are selected as targets to enable automatic filtering when a selection event occurs in Chart 1.

    Note that Show Selection Only is not enabled for Chart 1. That means that Chart 1 will continue to display all values when one its elements is selected.

Example: Show Selection Only

The Show Selection Only event displays only the value of the selected element within the chart or pivot table (being acted on).

In this example, Chart 2 is configured with Show Selection Only enabled and Filter enabled with Table 3 as the Target, as shown:

the picture is described in the document text

This configuration will result in the output shown below. When the user clicks on Chart 2, only the selected value will be shown in Chart 2. Because the Filter event is enabled for Table 3, the selection is applied as a filter to Table 3.

the picture is described in the document text

Setting Page Margins

To set the page margins for your report:

  1. Click anywhere in the design area outside of an inserted component.

  2. Click the Properties pane in the lower left of the Layout Editor. The following figure shows the Properties for the page:

    the picture is described in the document text

  3. Click the value shown for Margin to launch the Margin dialog. The Margin dialog is shown in the following figure:

    the picture is described in the document text

  4. Select the desired size for the margin. Enter the value for the Top, Left, Right, and Bottom margins.

    To automatically set the same value for all sides, select the box: Use same value for all sides. This action will disable all but the Top margin entry. Enter the value in the Top to apply to all sides.

Setting Maximum Connections for an Interactive Report

You can limit the connections from the browser to the server for the interactive viewer. More connections are faster but increase server load The default is six connections. Reduce the number to reduce the load on your server for large reports.

To set the maximum connections for this layout:

  1. Click anywhere in the design area outside of an inserted component.

  2. Click the Properties pane in the lower left of the Layout Editor. The following figure shows the Properties for the page:

    the picture is described in the document text

  3. Click the value shown for Max. Connections and select the desired value from the list.:

    the picture is described in the document text

Inserting Layout Components

The layout editor supports components that are typically used in reports and other business documents. The followings components are described in these sections:

About Layout Grids

The layout grid provides a way to divide a layout into sections. It functions similarly to a table in HTML or Word documents to create forms or to provide sophisticated layouts. Use a layout grid to control the exact placement of all other components in the layout.

To create a layout grid, select and drag the Layout Grid component to the design area.

the picture is described in the document text

In the dialog, enter the number of rows and columns for the grid and click OK to insert the grid to the design area as shown in the following figure:

the picture is described in the document text

Note the following about a layout grid:

Adding a Border or Background Color

By default, the gridlines are displayed in the design area only and are not shown during runtime. If you wish to display the gridlines in your finished report, select the grid cell and click the Set Border command button to launch the Border dialog.

To add a background color to a cell, click the Background Color command button to launch the Color Picker.

About the Insert Options

Once you have inserted a layout grid, you can add additional rows or columns. Select the layout grid cell that is the focal point, then click the appropriate command button:

About the Join/Unjoin Options

To join cells horizontally or vertically, select multiple adjacent cells by holding down the Ctrl key and clicking each grid cell. Then click the Join command button.

To unjoin cells that have been joined, select the joined cell and click the Unjoin button.

Adding an Expand and Collapse Option

When viewing a report in interactive mode, expand and collapse of a layout grid are supported. Expand and Collapse are supported at the grid level, (not the cell-level) therefore ensure to insert grids appropriately. For example, if your report contains a chart in the top portion of the layout and a table in the bottom and you want to be able to collapse the chart display, you must insert one layout grid to contain the chart and a second layout grid beneath the first to contain the table. Do not insert one grid with two rows.

To enable the expand and collapse option:

  1. Select the layout grid.

  2. Open the Properties pane.

  3. Set the Interactive: Expand/Collapse property to True. The following figure shows this option on the Properties pane.

    the picture is described in the document text

The following figures demonstrate the expand and collapse behavior when the report is viewed in interactive mode. Note the collapse icon in the upper right area of the report. Click the icon to collapse the grid. The second figure shows the report with the region collapsed.

the picture is described in the document text

About Repeating Sections

Repeating sections repeat the components within the section of the layout based on the occurrence of an element in the data. Repeating sections are used to create classic banded reports, as well as repeating pages or sections for different data elements (such as Group Above/Outline).

To create a repeating section:

  1. Drag and drop the repeating section component to the layout.

  2. In the Repeating Section dialog, select one of the following:

The following example shows a layout that has a repeating section defined for the element Department. Within the repeating section are a chart that shows salaries by manager and a table that shows all employee salaries. So for each occurrence of department in the dataset, the chart and table will be repeated:

the picture is described in the document text

Setting Page Break Options for a Repeating Section

By default, for paginated output types, the page will break automatically according to the amount of content that will fit on a page. It is frequently desirable to have the report break after each occurrence of the repeated content.

Using the preceding example, it would be desirable for the PDF output of this report to break after each department. To create a break in the report after each occurrence of the repeating section:

  1. Select the repeating section component.

  2. Open the Properties pane.

  3. Set the Page Break property to Page.

    The following figure displays the Properties for a repeating section:

    the picture is described in the document text

How Repeating Sections Display in Interactive Mode

In interactive mode, the values for the repeat by element are displayed as a list of values. This enables the enable the report consumer to dynamically select and view the results.

Shown in the example below, the repeat by element Department is displayed in a list of values:

the picture is described in the document text

By contrast, note the same layout displayed in PDF. In this example the page break option is set so that each new department begins the repeating section on a new page:

the picture is described in the document text

Showing All Values in a Repeating Section

In interactive mode, the values for the repeat by element are displayed as a list of values. By default, this list includes only the values present for the element in the data. Therefore, a report consumer can view results for only one item at a time.

To enable a report consumer to view the results in the repeating section for all values of the element, the Repeating Section component provides the property: Show All. When this property is set to true, the value "All" is added to the list to enable the display of results for all values.

To enable Show All:

  1. Select the repeating section component.

  2. Open the Properties pane.

  3. Set the Show All property to True.

    The following figure displays the Show All setting in the Properties pane:

    the picture is described in the document text

When you view the report, the option All is added to the menu of values:

the picture is described in the document text

About Data Tables

The data table is a standard table that is shown in many layouts. It contains a header, data columns, and a total row. The table supports "group left" functionality (outlines) that merges fields with the same values as well as subtotals, grand totals, custom calculations, and running totals.

Once inserted, you can edit the table properties using the dynamic tabs or the Properties pane. The following dynamic tabs are available for the table components:

Inserting a Data Table

  1. From the Insert tab, select and drag the Data Table component to the design area.

    The following figure shows an inserted, empty data table. Notice that the Table tab is now displayed.

    the picture is described in the document text

  2. To add data columns to your table, select an element from the Data Source pane and drag it to the table in the layout.

    The following figure shows the columns being added to the table. Notice that when you drop a column on the table your sample data is immediately displayed.

    the picture is described in the document text

  3. Continue to drag the elements from the Data Source pane to form the columns of your table. If you need to reposition a column that you have already added, select it and drag it to the correct position.

    The following figure shows a completed data table.

    the picture is described in the document text

    Notice the following default behavior:

Setting Alternating Row Colors

Some data tables are easier to read when the rows display alternating colors, as shown in the following figure:

the picture is described in the document text

To set an alternating row color:

  1. Select the table.

  2. Open the Properties pane.

  3. Click the value shown for Alternate Row Color to launch the color picker.

    the picture is described in the document text

  4. Choose a color and click OK.

About the Table Tab

The Table Tab enables you to perform the following:

the picture is described in the document text

Setting the Rows to Display Option

The Rows to Display property controls the number of rows of data displayed as follows:

The default is 10 rows of data. You can select 10, 20, 30, 40, or All rows of data to be displayed. To set a custom value, open the Properties pane and enter the custom value for the Rows to Display property.

Note: Displaying more rows of data could impact performance of the Layout Editor.

About Filters

A filter refines the displayed items by a condition. This is a powerful feature that enables you to display only desired elements in your table without having to perform additional coding. For example, you could add a filter to meet some of the following report conditions:

You can add multiple filters and manage the order in which they are applied to your table data.

Setting Filters for a Table

To set a filter:

  1. Click the Filter toolbar button. This launches the Filter dialog, shown in the following figure:

    the picture is described in the document text

  2. Enter the fields to define a filter:

    Field Description
    Data Field Choose the data field to filter the table data by. All elements are available regardless of whether they are included as table columns.
    Operator Select from the following operators:
    is equal to
    is not equal to
    is less than
    is greater than
    is less than or equal to
    is greater than or equal to
    is between
    is in top
    is in bottom
    Value Enter the value or values appropriate for the operator selected. The value can be either a text entry, or an element from the data.

Managing Filters

After you have added filters, use the Manage Filters feature to edit, delete, or change the order that the filters are applied.

To manage filters:

  1. Click the Manage Filters toolbar button to launch the Manage Filters dialog shown in the following figure:

    the picture is described in the document text

  2. Pause your cursor over the filter to display the actions toolbar. Use the toolbar buttons to edit the filter, move the filter up or down in the order of application, delete, or add another filter.

About Conditional Formats

A conditional format changes the formatting of an element in your table based on a condition. This feature is extremely useful for highlighting target ranges of values in your table. For example, you could create a set of conditional formats for your table that display rows in different colors depending on threshold values.

Applying Conditional Formats to a Table

To apply a conditional format:

  1. Click the Highlight button. This launches the Highlight dialog, shown in the following figure:

    the picture is described in the document text

  2. Enter the fields to define a condition and format to apply:

    Field Description
    Data Field Choose the data field to apply the condition to. All elements are available regardless of whether they are included as table columns. For example, you may want to highlight in red all employees with salaries greater than $10,000, but not actually include the salary element in the table.
    Operator Select from the following operators:
    is equal to
    is not equal to
    is less than
    is greater than
    is less than or equal to
    is greater than or equal to
    is between
    Value Enter the value or values appropriate for the operator selected. The value can be either a text entry, or an element from the data.

    Important: If entering a date value, use on of the following XSL date or time formats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS.

    Font Family Select the font to apply to the row of data that meets the condition. You can also apply bold, italic, or underline emphasis.
    Size Select the size of the font to apply to the row of data that meets the condition.
    Color Click the color box to open the Color Picker. Choose one of the predefined colors or click Custom Color to define your own color to apply to the font.
    Background Color Click the color box to open the Color Picker. Choose one of the predefined colors or click Custom Color to define the background color to apply to the row.

    The following figure shows the table in the layout with the condition applied:

    the picture is described in the document text

Managing Formats

After you have added conditional formats, use the Manage Formats command to edit or delete a format.

To manage formats:

  1. Click the Manage Formats button to launch the Manage Conditional Formats dialog shown in the following figure:

    the picture is described in the document text

  2. Pause your cursor over an item to display the actions toolbar. Use the toolbar buttons to edit the format, move the format up or down in the order of application, delete, or add another format. Note that the order of the conditions is important because only the first condition met will be applied.

Controlling the Display of the Total Row

By default, the layout editor inserts a total row in your table that sums numeric columns. To remove the total row, click the Show menu and select the table view without the highlighted total row. The Show menu options are shown in the following figure:

the picture is described in the document text

The total row can be further customized using the Total Cell tab and the Properties pane. For more information see About the Total Cell Tab.

About the Table Column Header Tab

The Table Column Header tab is shown in the following figure:

the picture is described in the document text

The Table Column Header tab enables you to perform the following:

About Grouping

"Grouping" groups together elements in the data of the same value. In a table, applying grouping can make your table easier to read.

The Grouping option enables you to choose between "Group Left" or "Group Above". Group left maintains the "group by" element within the table. The following figure shows a table that has been grouped by Manager using Group Left:

the picture is described in the document text

Group above inserts a Repeating Section component, and extracts the grouping element from the table. The grouping element is instead displayed above the table and a separate table is displayed for each occurrence of the grouping element. The following figure shows a table that has been grouped by Manager using Group Above:

the picture is described in the document text

Example: Group Left

In the following example, the table data has been grouped by the elements of the first two columns, Manager and Title. Notice that there is only one entry per manager name and one entry for each job title under that manager name. This organizes the data rows more cleanly in the table.

the picture is described in the document text

Applying Subtotals

To further enhance your table, you can add a subtotal row to display for each grouped occurrence of the element. The figure below shows the same table with the Subtotals box checked. Notice that for each manager a subtotal row has been inserted.

the picture is described in the document text

Example: Group Above

In the following example, the table data has been grouped by Manager. Notice that in the design pane, the Data Table component has been replaced with a Repeating Element component that contains the data table. The Manager element is inserted above the table with a label.

the picture is described in the document text

The label is a text item. Edit the text by double-clicking the item to select it, then single-clicking to edit.

When you run the report, a separate table is created for each occurrence of the grouping element. In Interactive output mode, the grouping element displayed at the top of the table is displayed as a filter. Choose the value you wish to view from the list as shown in the following figure:

the picture is described in the document text

About the Column Tab

The Column tab is enabled when you select a specific column in a table.

the picture is described in the document text

It enables you to perform the following:

About the Data Formatting Options for Columns

The options available from the Data Formatting region of the tab depend on the data type of the column selected. The tab provides common options to choose from.

Applying Formatting to Numeric Data Columns

If the column contains numeric data, the following formatting options are available:

Applying Formatting to Date Type Data Columns

If the column contains dates, the following formatting options are available:

About the Formula Option

The options available from the Formula region of the column tab depend on the data type of the column.

For more information about applying formulas, see Setting Predefined or Custom Formulas.

About the Sort Option

To sort the data in a column, select the column, then under the Sort group click Ascending Order or Descending Order.

To sort by more than one column, select the column, the sort order, and then assign a Priority to each column. The priority list is a list of values beneath the sort order commands.

For example, in the following employee salary table, assume you want to sort ascending first by Title then sort descending by Annual Salary:

the picture is described in the document text

To apply the sort order to this table:

  1. Select the Title column.

  2. On the Column tab, under Sort, click the Ascending Order button.

  3. From the Priority list, select 1.

    the picture is described in the document text

  4. Next select the Annual Salary column.

  5. On the Column tab, under Sort, click the Descending Order button.

  6. From the Priority list, select 2.

The sorted table is shown in the following figure:

the picture is described in the document text

Removing a Sort Order

To remove a sort order applied to a column:

  1. Select the column.

  2. From the Sort region on the Column tab, click the appropriate button of the sort order that has been applied. For example, to deselect the ascending order, click the Ascending Order button to undo the sort.

About the Total Cell Tab

The Layout Editor automatically inserts a grand total row when you insert a data table to your layout. As shown in the section on grouping, you can also insert subtotal rows within your table based on a grouping element. To edit the attributes of the cells in a grand total or subtotal row, select the cell and use the options in the Total Cell tab shown in the following figure:

the picture is described in the document text

The Total Cell tab enables you to perform the following:

Applying Data Formatting to a Total Cell

See About the Data Formatting Options for Columns under the Column tab section.

Applying a Formula

By default, the formula applied to a Total Cell within a numeric column is a sum of the column items. The Formula option enables you to apply a different formula.

Not all options available from the Formula region of the column tab are applicable to a Total Cell.

For more information about applying formulas, see Setting Predefined or Custom Formulas.

About Charts

The layout editor supports a variety of chart types and styles to graphically present data in your layout. The following figure shows side-by-side vertical bar and pie charts in the layout editor.

the picture is described in the document text

Once inserted, you can edit the chart properties using the dynamic toolbars or the Properties pane. The Properties pane extends the options from the Chart tab and enables you to enter very specific custom settings for the following:

Note: Some font effects such as underline, italic, and bold may not render in PDF output.

Inserting a Chart

  1. From the Insert menu, select and drag the Chart component to the layout.

    By default an empty vertical bar chart is inserted and the Chart dynamic tab is displayed, as shown in the following figure:

    the picture is described in the document text

  2. To change the chart type, click the Chart Type list to select a different type. In the following figure the chart type is changed to Pie.

    the picture is described in the document text

  3. Select and drag the data fields from the Data Source pane to the appropriate areas in the chart. The chart will immediately update with the preview data.

    the picture is described in the document text

  4. To resize the chart, drag and drop the resize handler on the lower right corner of the chart, as shown in the following figure:

    the picture is described in the document text

About the Chart Tab

The Chart tab enables you to perform the following:

Applying and Managing Filters

See About Filters for information on how to apply and manage filters.

Converting a Chart to a Pivot Table

To convert a chart to a pivot table:

  1. Select the chart.

  2. In the Convert group, click Pivot Table.

The layout editor will convert the label, series, and value elements of the chart into the appropriate rows, columns, and data elements of a pivot table.

Changing the Formula Applied to a Chart Measure Field

By default, the chart displays a sum of the values of the chart measure. You can change the formula applied to a chart measure field by selecting an option from the Chart Measure Field tab.

Change the Formula Using the Tab

  1. Select the measure field in the chart. This displays the Chart Measure Field tab as shown in the following figure:

    the picture is described in the document text

  2. Select from the following options available from the Formula list:

Sorting a Chart Field

To sort a field in your chart:

  1. Select the field to display the Chart Field tab.

  2. On the Chart Field tab select Sort Ascending or Sort Descending.

  3. To sort by multiple fields, apply a Priority to each sort field to apply the sort in the desired order.

About Gauge Charts

A gauge chart is a useful way to illustrate progress or goals. For example, the following figure shows a report with three gauges to indicate the status of regional sales goals:

the picture is described in the document text

To insert a gauge chart in your layout:

Inserting a Gauge Chart

  1. From the Insert menu, select and drag the Gauge component to the layout. This inserts an empty gauge chart.

    the picture is described in the document text

  2. Select and drag the data fields from the Data Source pane to the Label, Value, and Series areas of the chart. The chart will immediately update with the preview data.

    In the example figure, drag REGION to the Label area and DOLLARS to the Value area:

    the picture is described in the document text

    Note the following:

Setting the Properties for a Gauge Chart

Use the Properties Pane to set detailed options for your gauge chart.

Applying and Managing Filters

See About Filters for information on how to apply and manage filters.

About Pivot Tables

The pivot table provides views of multidimensional data in tabular form. It supports multiple measures and dimensions and subtotals at all levels. The following figure shows a pivot table:

the picture is described in the document text

Inserting a Pivot Table

To insert a pivot table:

  1. From the Insert tab, select and drag the Pivot Table component to the layout. The following figure shows the empty pivot table structure:

    the picture is described in the document text

  2. Drag and drop data fields from the Data Source pane to the row, column, and data positions.

    Drag multiple fields to the pivot table and place them precisely to structure your pivot table.

    the picture is described in the document text

  3. By default the pivot table is inserted with no data formatting applied. To apply a format to your data, click the first column of data to enable the Pivot Table Data toolbar. On the Data Formatting group, select the appropriate format as shown in the following figure:

    the picture is described in the document text

  4. Optionally resize the pivot table by clicking and dragging the handler in the lower right corner of the pivot table.

    the picture is described in the document text

Customizing a Pivot Table Menu

After you insert a pivot table customize the appearance and layout using the following dynamic tabs:

About the Pivot Table Tab

The following figure shows the Pivot Table tab:

the picture is described in the document text

Applying Filters

See About Filters for a description of he Filter and Manage Filters features.

Customizing the Display of Totals

The Pivot Table tab enables you to quickly customize the display of grand total and subtotal rows.

By default, the layout editor inserts the pivot table with the total and subtotal displays as shown in the tab:

Change the positioning and display of totals and subtotals by clicking the appropriate group in the tab and selecting the desired layout pattern from the menu.

Converting a Pivot Table to a Chart

The Convert Pivot Table to a Chart command converts the pivot table to a default vertical bar chart. After conversion, customize the table as described in About Charts.

The following figure shows the pivot table created in the preceding step converted to a vertical bar chart:

the picture is described in the document text

Switching Rows and Columns

Use the Switch Rows and Columns command to see a different view of the same data. The following figure shows the pivot table created in the previous step with rows and columns switched:

the picture is described in the document text

Customizing the Pivot Table Headers

The Pivot Table Header tab is shown in the following figure:

the picture is described in the document text

Select the column or row header of the pivot table and use the Pivot Table Header tab to perform the following:

Customizing the Pivot Table Data

The Pivot Table Data tab is shown in the following figure:

the picture is described in the document text

Select the data area of the pivot table and use the Pivot Table Data tab to perform the following:

Note: The commands in the Pivot Table Data tab are the same as the corresponding commands in the table Column tab. See the references for more information on their use.

About Text Items

The text item component allows you to enter free-form text in the layout.

To create a text item component:

  1. Drag and drop the text item component to the layout.

  2. Double-click the text to enter text editor mode. Select parts of the text to apply different formatting to different parts.

Displaying a Data Field Side by Side with a Text Item

By default, the text item always spawns a complete paragraph. Inserting a data field next to the text field will place the data field beneath the text field as shown in the following figure:

the picture is described in the document text

To display the data field inline with the text item, set the Display property to Inline in the Properties pane:

the picture is described in the document text

This setting enables the positioning of text items and data fields into a single line as shown in the following figure:

the picture is described in the document text

About the Text Toolbar

The Text Tab is shown in the following figure:

the picture is described in the document text

The Text tab enables you to perform the following:

Editing Font Properties

Use the Font group of commands to set the following:

Inserting Page Numbers

Drag and drop the page number component to the design area.

To create the following Page # of N construction

the picture is described in the document text

perform the following:

  1. From the Insert tab drag and drop a Text Item to the design area where you want the page numbers to display.

  2. Double-click the inserted text to select the text item for editing. Type "Page ".

  3. From the Text dynamic tab, drag and drop the Page Number component.

  4. Enter a space, and type "of ".

  5. From the Text dynamic tab, drag and drop the Page Total component.

Inserting the Date and Time

To insert the date and time in your report:

  1. From the Insert tab drag and drop a Text Item to the design area where you want the date and time to display.

  2. Double-click the inserted text to select the text item for editing.

  3. Click the Date icon to insert the date icon in the text item. Click the Time icon to insert the time icon in the text item.

    Note: To display the items side-by-side ensure to set the Text Item property to "Inline".

    This is shown in the following figure:

    the picture is described in the document text

When this report is viewed, the date and time will be displayed according to the server time zone if viewed online, or for scheduled reports, the time zone selected for the schedule job.

the picture is described in the document text

Inserting a Hyperlink

To insert a hyperlink in your report:

  1. From the Insert tab drag and drop a Text Item to the design area where you want the date and time to display.

  2. Double-click the inserted text to select the text item for editing. Enter the text which you want to convert to a link.

  3. Select the text, then click the Link button.

  4. In the dialog enter the URL.

About Images

The image component enables you to include a graphic in the layout. BI Publisher supports the following methods for including an image:

To insert an image:

  1. Drag and drop the image component to the layout.

  2. In the Insert an Image dialog, specify one of the following sources for the image:

    The following figure shows the Insert an Image dialog set up to retrieve an image URL dynamically from the "Image" data element. The value of the "Name" element will be used as alternative text.

    the picture is described in the document text

  3. Optionally resize the image in one of these ways:

About Lists

The list component displays all values of a data element in a vertical or horizontal list. When viewed in interactive mode, clicking an item in the list updates the results shown in the linked components of the report. The following example shows a report that displays multiple charts based on sales data. The list component displays each country for which there is sales data. The list enables the report consumer to quickly see results for each country in the list by clicking the entry in the list.

the picture is described in the document text

Inserting a List

  1. From the Insert tab, select and drag the List component to the design area.

    The following figure shows an inserted, empty list.

    the picture is described in the document text

  2. To create the list, select an element from the Data Source pane and drag it to the empty list in the layout.

    The following figure shows the list component after dragging the element Country Name to it.

    the picture is described in the document text

  3. Customize the appearance of the list. See Customizing a List.

  4. Configure linked components using the Configure Events command. By default, all other tables and charts in the layout are configured to filter their results based on the user selections in the list component. To change this default behavior, see Event Configuration.

Customizing a List

Use the List Tab to:

the picture is described in the document text

Customizing the Font Style and the Selected Font Style Commands

The list on the left shows the default format of the list. The list on the right shows the Selected Font default format:

the picture is described in the document text

Edit the font settings by selecting a font family from the list and adjusting the point size.

By default, the list displays with one point black gridlines. Click the Set Border to adjust the default borders of the list. Use the Background Color and Font Color commands to customize the colors.

The Selected Font commands edit the appearance of the item in a list when it is selected. By default, the selected element is moved to the top of the list, and the background is changed to light blue. You can edit the font weight, background color, and font color that are displayed for selected items.

Customizing Behavior of Selected Items

By default, the selected items move to the top of the list and the nonselected items are "hidden" by a gray fill. You also have the option of not applying this behavior by setting the property "Hide Excluded".

This property is available from the Properties pane when the List component is selected. The Hide Excluded property is highlighted in the following figure:

the picture is described in the document text

The following figure shows the difference in the display depending on the setting of the property:

the picture is described in the document text

Setting Predefined or Custom Formulas

the picture is described in the document text

The Formula group of commands is available from the following tabs:

Note that not all options are applicable to each component type.

About the Predefined Formulas

The menu provides the following predefined formulas:

Formula Description
No Formula Removes any mathematical formula from a numeric column.
Blank Text Removes all data and inserts blank text.
Count Returns the count of the number of occurrences of the element in the current . group.
Count Distinct Returns a count of the distinct values of an element in the current group.
Summation Sums the values of the element in the current group.
Average Displays the average of the values in the current group.
Maximum Displays the highest value of all occurrences in the current group.
Minimum Displays the lowest value of all occurrences in the current group.

For non-numeric data, only the following formula options are supported:

Applying a Custom Formula

Click Define Custom Formula to define your own formula for a component. The Function dialog enables you to define Basic Math, Context, and Statistical functions in your layout.

the picture is described in the document text

About the Basic Math Functions

When you click one of the basic math functions you are prompted to define the appropriate parameters for the function. You can enter a constant value, select a field from the data, or create a nested function to supply the value.

In the following example, clicking the Multiplication function displays prompts to enter the multiplicand and the multiplier. The example shows that the multiplicand is the value of the Amount Sold field. The multiplier is the constant value.

the picture is described in the document text

About the Statistical Math Functions

When you click one of the statistical math functions you are prompted to define the appropriate parameter for the function. You can select a field from the data, or create a nested function to supply the values. In the following example, clicking the Average function displays prompts for you to specify the source of the values for which to calculate the average.

the picture is described in the document text

Applying a Custom Formula: Examples

Example 1: Subtraction

The following table shows data for Revenue and Cost for each Office:

the picture is described in the document text

Using a custom formula, you can add a column to this table to calculate Profit (Revenue - Cost).

  1. Add another numeric data column to the table. For example, drag another instance of Revenue to the table:

    the picture is described in the document text

  2. With the table column selected, click Define Custom Formula.

  3. In the Function dialog select Subtraction from the list. Because the source data for the column is Revenue, by default the Minuend and the Subtrahend will both show the Revenue element

    the picture is described in the document text

  4. Select Subtrahend, then in the Parameter region, select Field and choose the Cost element.

    the picture is described in the document text

    The dialog will update to show that your formula is now Revenue minus Cost.

    the picture is described in the document text

  5. Click OK to close the dialog.

  6. The table column displays the custom formula. Edit the table column header title, and now your table has a Profit column:

    the picture is described in the document text

Example 2: Nested Function

This example will use a nested function to create a column that shows Revenue less taxes.

  1. Add another numeric data column to the table. For example, drag another instance of Revenue to the table:

    the picture is described in the document text

  2. With the table column selected, click Define Custom Formula.

  3. In the Function dialog select Subtraction from the list. Because the source data for the column is Revenue, by default the Minuend and the Subtrahend will both show the Revenue element

    the picture is described in the document text

  4. Select Subtrahend, then in the Parameter region, select Nested Function and click Edit.

    the picture is described in the document text

    A second Function dialog will launch to enable you to define the nested function. In this case the nested function is Revenue times a constant value (tax rate of .23).

    the picture is described in the document text

  5. Click OK to close the dialog. The primary Function dialog now shows the nested function as the source of the subtrahend:

    the picture is described in the document text

  6. Click OK to close the Function dialog. The table column displays the custom formula. Edit the table column header label, and now your table shows your custom function:

    the picture is described in the document text

Saving a Layout

To save your layout to the report definition:

  1. Click the Save or Save As toolbar button

  2. The Save Layout dialog displays the list of layouts defined for the report definition as shown in the following figure:

    the picture is described in the document text

  3. Enter a unique name for this layout.

  4. Select a Locale.

    Important: Once you have saved the layout, the Locale cannot be updated.