Adding KPIs to Dashboards

A Key Performance Indicator (KPI) widget displays the basic number of any measure or expression. It can also include a title and an icon indicator.

The KPI Builder lets you:

Set other KPI properties at the dashlet level:

Add a new KPI

  1. From a Dashboard, select Edit.

  2. Select the Insert icon.

  3. Select KPI from the menu.

  4. The KPI Builder opens.
  5. As you enter the KPI measures and set its properties, the KPI Builder shows you a preview of the KPI.
  6. From the KPI builder, you can:
    1. Select a measure
    2. Add title text
    3. Add an indicator
    4. Add chart
    5. Determine KPI format
  7. Save when done.

Example KPIs

Here are examples of KPIs:

To select a measure, its date type, and its aggregate

  1. From the KPI Builder, select the Measure tab and Select Measure.

  2. The Default Subject Area automatically displays. Subject Areas are where attributes and measures are collected together. If a Custom Subject Area was created for the space, click the change Subject Area icon to access its measures.


  3. Use Search to quickly find a measure when you know its name or click Measures to view all measures.
  4. Select a measure. The Measure options panel opens. Measures from Default Subject Areas and Custom Subject Area are defined differently.
    • If the measure is from the Default Subject Area:

      1. Click to change the Aggregation type, if you don't want the default. Click Back when you are done.
      2. Click to change the Date Type. Usually you don't want the default, Load Date, that is when data was last refreshed in the space. You may rather want something like the Order Date. It depends on your particular analytical requirements.
      3. Click Back when you are done.
    • If the measure is from a Custom Subject Area:

      1. Select the date type.

      1. Select the aggregation. The aggregation is how the KPI is calculated from the numeric data, such as a sum or an average.
      2. Click Save.

Format a KPI

  1. From the KPI Builder, select the Measure tab.
  2. Click Formatting. You can format:
    • Units: None (no commas), Thousands (K), Millions (M), Billions (B), or percent (%). The default Auto is chosen by Dashboards 2.0.
    • Suffix: By default there is no suffix label after the measure number. You can add the percent sign label (%).
    • Decimal: 0 - 3 decimal places, or All. The default Auto is what is used by the base data.
    • Currency: By default there is no currency prefix label. Select one from the list.
  1. Click Back when you are done.
  2. Click Style Settings to apply styles to the measure.
  3. Select a font face from the list.
  4. Select a font color.

    Tip: You can enter the hex number for the color. This is helpful when you use standard colors and a have a list of their hex numbers.
  5. Click Back when you are done with the Style Settings.
  1. If you don't want to show the measure title but not the data, you can toggle the data off.
  2. Click Save.
    The KPI Builder closes and the KPI widget displays on the dashboard, where you can resize and move it to fit your dashboard design.

To add an expression to a KPI

Tips:

  • Some report expressions may already be listed in the KPI Measure list. Check the list before creating a new expression.
  • Expressions created for a KPI are saved for only the KPI and cannot be shared.
  1. From the KPI Builder, select the Measure tab.
  2. Click the + Add Expression icon.

    The Expression Builder opens.
  3. In the Expression Builder name the expression.
  4. Enter the expression.
  • If you are proficient in BQL or have a pre-existing query:
    1. Select Advanced mode.
    2. Enter or paste the query into the text field.
    3. Click Done.
  • Otherwise, using Basic mode:
    1. Start typing the name of one of the existing measures the Code field. Type-ahead search helps you find the relevant measures.
    2. Select the operator from the list or type a shortcut such as asterisk (*).
    3. Select another measure and iterate until the expression is complete.
    4. Optionally, click the selected measure to change its Aggregation or Analyze By Date settings.

    5. Click Done.
      Tip: The message "Expression is incomplete" displays at the bottom and Done is unavailable until there is a complete expression in the Code field.
  1. Click Done. The title and value of the expression display in the KPI widget.

Tip:: To edit an existing expression, select it in the KPI Measures list and hover over it to see the Edit button.

To change the title of a KPI

  1. Click the Title block to enter a different title, or you can toggle the title off so it doesn't display.

    Tip: You can use variables, with either the GetVariable('variable_name') or V{variable_name} syntax, in the title. See Using Variables.
  2. Click Style Settings to change the title font color. As with the measure, you can enter a hex value for the color.

To add an indicator icon to a KPI

  1. In the KPI Builder click Indicator to add an indicator icon.
  2. By default it is toggled off, so first toggle it on.

  3. Select the measure or expression for the indicator.
    Tip: The indicator can use a different measure than the main KPI measure.
  4. Click Conditional Formatting.

  5. Use the interval buttons, value slider, and shape/color menus to specify the ranges to apply to the indicator.

  6. Click Save. The widget appears on the dashboard. You can move and resize it just like a dashlet.
    Tip: In some cases you may need to Publish (Save) the dashboard to refresh the data and indicator.

To add a sparkline

A sparkline is a small graph that represents the measure of the KPI and an attribute. The sparkline chart formats include column, bar, line, spline, area, and areaspline.

  1. Choose an attribute.
  2. Pick a chart type.
  3. Select a color.

  4. Click Save.
  5. Click Close.
  6. Resize the KPI dashlet if needed.
    Tip: If a KPI is sized too small, the sparkline chart will not display.
  7. Publish (save) the dashboard.
  8. The dashboard user can hover over the sparkline chart to see additional information in the tooltip.

    Tip: If a drill path is defined, the sparkline tooltip will show the drill icon and the user can drill down.

To select KPI layout

  1. From the KPI Builder, select General.
  2. Under KPI Layout, select your desired layout for the chart, indicator, and body text. The available options will reflect which items are enabled on your KPI.

  3. Click Save.

Add a tooltip

  1. Select the KPI
  2. click Edit
  3. Select the Edit Dashlet Properties icon.
  4. In the Description box enter the text you want the user to see. For more control over formatting, you can use carriage returns and extra spaces in the text.

    Tip: Use variables in the description box with either the GetVariable('variable_name') or V{variable_name} syntax. See Using Variables.
  5. Click Apply.
  6. Publish (save) the dashboard. Hover over the KPI to see its tooltip.

Change the background and border color of a KPI

  1. Select the KPI to activate the dashboard style bar. Note: The style bar functions will vary based on the dashlet you select or if you select multiple types of dashlets at the same time.
  2. Select the Background color editor to change the background color of the selected KPI dashlet.

  3. Select the desired background color. You can choose from suggested colors or click the dropper to pick from a color slider which includes the option to enter a hex value. If you desire no background color, select the red slash option.

  4. No background color option:
  5. You can use the dashboard style bar to display or hide the border and change the color of the border stroke. Similar to the background color, you can customize the color using the dropper or enter a hex value for the border color. If you desire no border, select the red slash option.

  6. No border option:
  7. There are additional features you can edit such as border radius, border thickness, padding and shadow.


  8. The dashboard style editor also provides options to stack dashlets relative to each other.
  9. Click Publish to save all the changes.

Add a drill-across link to another page

  1. A drill-across link opens a specific dashboard page when the end user clicks on the KPI widget.
  2. Select the KPI, click Edit, and select Drill Across.
  3. In the Drill Across options select a page and optional parameters, and click Apply. See Adding Drill-Across Links.
  4. Save (Publish) the dashboard.
    Tips
    • The KPI shows a link indicator so that the user knows to click and drill.
    • Hovering over a KPI reveals the linked page name and description, if any.

Adjust font size ratios

The scaling ratio settings control the size of the title text versus the measure value number. The slider changes the sizes by proportion.

Make font sizes consistent across multiple KPIs

The fonts inside KPIs are responsive, meaning that the font size increases or decreases according to the size of the browser window or tablet screen. When you have multiple KPIs, this can result in inconsistent font sizing. If you prefer to keep font sizes consistent even as the dashboard or dashlet dimensions change, use the Make Font Sizes Consistent option.

For example, you have three KPIs that have the same unit formatting, however the numeric ranges vary widely and the font sizes are all different.

  1. In Edit mode, select a KPI. The dynamic toolbar appears at the top of the dashboard and shows the Make Font Sizes Consistent option.
  2. Toggle the option.

  3. Repeat step 2 for the additional KPIs. The font sizes become consistent.
  4. Optionally, you may want to resize the dashlets to account for the resized fonts. In this example, the KPIs could be a bit shorter, because the font size of the third dashlet is much smaller than before.
  5. Click Publish to save your changes.
  6. Notice that when you resize the dashboard, the KPIs retain their responsiveness while maintaining consistency.