BackPrevious Topic  Next TopicNext

Working with KPIs

A KPI (Key Performance Indicator) is a data container based on a business view for displaying KPI value together with a chart to help illustrate the value. This topic introduces what objects a KPI can contain and how you can create KPIs in a report.

Note icon You cannot use KPIs in page reports.

This topic contains the following sections:

Objects in a KPI

You can add the following objects in a KPI:

  • Aggregations and formulas as the KPI values.
  • Labels to describe the values and as the KPI title or description.
  • Images to decorate the KPI or used as logo.
  • A KPI chart to assist the KPI values, for example, to show the trend of total sales over time. You can include at most one KPI chart in a KPI. A KPI chart does not have the legend and axes compared to normal Report charts. You can insert a KPI chart in a KPI only and the KPI chart should inherit the dataset from the KPI. A KPI chart can be one of the following 2-D chart types: Bar, Bench, Line, Area, Pie, and Bullet.

A KPI is bound with a dataset created on a business view and the KPI value and KPI chart in it are both based on this dataset. You can position and resize the objects in a KPI freely by dragging them inside the KPI.

Back to top

Inserting KPIs in a Report

  1. Position the mouse pointer at the allowed report location where you want to insert the KPI.
  2. Do one of the following:
    • From the Components panel, drag the KPI icon KPI icon in the Visual category to the destination.
    • Navigate to Insert > KPI.
    • Navigate to Home > Insert > KPI.
  3. In the Choose Data dialog box, specify the dataset you want to bind with the KPI and select OK.

    Choose Data dialog box

  4. Designer inserts a blank KPI at the destination. You can then define the KPI by adding objects into it.

    Blank KPI

  5. Drag an aggregation or a dynamic formula from the Data panel as the KPI value. Designer adds the name label of the object at the same time by default. You can edit the label text.
  6. Insert a KPI chart to demonstrate data about the KPI value.
    1. Right-click in the blank area of the KPI and select Insert KPI Chart from the shortcut menu. Designer displays the Create KPI Chart dialog box.
    2. The Data screen shows that the KPI chart inherits the dataset bound with the KPI. You cannot change the dataset.

      Create KPI Chart - Data

    3. In the Type screen, select a 2-D Bar, Bench, Line, Area, Pie, or Bullet chart type.

      Create KPI Chart - Type

    4. In the Display, Layout, and Style screens, define the KPI chart as you would do for a general chart.
    5. Select Finish to insert the chart into the KPI.
  7. You can add more aggregations, dynamic formulas, labels, and images into the KPI.
  8. Resize the KPI and the objects in it and drag the objects to adjust their position in the KPI to improve the layout.

After you create a KPI, you can further edit the objects in it. The KPI chart in a KPI supports most of the operations that you can apply to a general chart. For example, you can modify its definition using the KPI Chart Wizard dialog box, add link to its data markers, and format its paper, platform, wall, label, and data markers (bars/benches, lines, areas, pies, or bullets). If you want to remove the KPI chart, select the KPI, right-click and select Remove KPI Chart on the shortcut menu.

Back to top

Example: Creating a KPI

This example uses a KPI to show total sales.

  1. Make sure SampleReports.cat is the currently open catalog file. If not, navigate to File > Open Catalog to open it from <install_root>\Demo\Reports\SampleReports.
  2. Navigate to File > New > Web Report to create a web report.
  3. Drag KPI button from the Components panel to the destination.
  4. In the Choose Data dialog box, select WorldWideSalesBV in the current catalog to bind it with the KPI and select OK. Designer inserts a blank KPI at the destination.
  5. In the Data panel, create a dynamic formula in the name KPI_TotalSales with the following expression. Use it as Aggregation.

    if (@"Orders Detail.Total Sales">=1000000)
    ToText(@"Orders Detail.Total Sales"/1000000, "$#,###.00")+"M"
    else if (@"Orders Detail.Total Sales">=1000)
    ToText(@"Orders Detail.Total Sales"/1000, "$#,###.00")+"K"
    else
    ToText(@"Orders Detail.Total Sales", "$#,###.00")

  6. Drag the formula from the Data panel to the KPI as the KPI value.
  7. Right-click in the blank area of the KPI and select Insert KPI Chart from the shortcut menu.
  8. In the Create KPI Chart dialog box, go to the Display screen, add the group object Sales Quarter to the category axis, the aggregation object Total Sales to the value axis, then select Finish to insert the KPI chart.

    Add Fields to the KPI Chart

  9. Adjust the position of the objects in the KPI.

    Adjust Objects in the KPI

  10. Select the View tab to preview the real data.

    Preview the KPI

Back to top

BackPrevious Topic  Next TopicNext