Adding a key performance indicator (KPI)

Edited

In Studio, you can use a key performance indicator (KPI) to translate one phenomenon that lies within data into a simple message. There are three types of KPIs available in Studio:

  1. Simple KPIs highlight a piece of information. For example, you can create a simple KPI to show the sum of inhabitants in the city in 2021.

  2. Comparison KPIs compare two subsets of data or two populations. For example, you create a comparison KPI to show the evolution of bike users over time by comparing the number of bike users between 2020 and 2021.

  3. Ratio KPIs gives the proportion of a population within a larger one. For example, you can create a ratio KPI to know the percentage of women in the total population of your country.

We recommend that you follow some key principles to build clear KPIs:

  • A KPI must convey a single message so that a single indicator is emphasized.

  • A KPI needs some context so that anyone browsing the page can understand what the KPI is related to.

  • A KPI must be meaningful. If you add a picture, a pictogram, or colors, it must serve the message you want to convey.

Step 1: Select the block type

You need to define the block type before you can configure the content you want to add.

  1. From the preview pane, click the block you want to edit.

  2. From the left side pane, select KPI as the block type.

  3. Click Next.

If you change your mind, you can change the block type afterward. The block configuration will be reset after you change the block type.

Step 2: Select the dataset

Select the source dataset to create a graphic representation of the data.

The dataset is only selected for the current block. If you add some content to another block afterward, you will need to select an input dataset again.

  1. From the left side pane, select the desired dataset from the list.
    A preview of the first 20 records opens in the preview pane.

  1. Click Next to continue with the configuration.

Step 3: Select the KPI type

After selecting a block type and the input dataset, you can now select the type of KPI to be inserted into the block.

  1. From the left side pane, select Simple KPIComparison KPI or Ratio KPI.

Step 4: Configure the visualization parameters

Configure the visualization parameters for a simple KPI

  1. From the left side pane, select the function to apply and the field to be used for value computation. When using a date field, select the time scale to be used.

  2. You can also refine the data shown on the KPI:

    1. Click Add a condition.

    2. Select the field from the input dataset.

    3. Select an operator. Depending on the field type, the available operators may vary.

    4. Click Confirm.

    For more information, see Refining data.

  3. (optional) In the Unit field, you can enter the unit associated to the indicator. By default, this unit is placed on the right side of the indicator. You can place it on the left by using the swap toggle.

  4. Click Next to continue with the configuration.

Configure the visualization parameters for a comparison KPI

When creating a comparison KPI, you create two sets of data so that you can compare them between each other and identify differences.

  1. From the left side pane, select the function to apply and the field to be used in the first set of data.

  2. You can also filter or refine the data shown on the KPI:

    1. Under the desired set, click Add a condition.

    2. Select the field from the input dataset.

    3. Select an operator. Depending on the field type, the available operators may vary.

    4. Click Confirm.

  3. Repeat the previous instructions to configure the second set of data.

  4. Configure how to display the comparison between the two sets of data using the parameters from the KPI content section:

    1. From the Comparison direction drop-down list, select either Set 1 compared to Set 2 or Set 2 compared to Set 1.

    2. From the Comparison format drop-down list, select either Difference or Ratio percentage.

    3. (optional) In the Unit field, you can enter the unit associated to the indicator. By default, this unit is placed on the right side of the indicator. You can place it on the left by using the swap toggle.

  5. Click Next to continue with the configuration.

Configure the visualization parameters for a ratio KPI

When creating a ratio KPI, you create two sets of data so that you measure the proportion of one within the other.

  1. From the left side pane, select the function to apply and the field to be used in the first set of data.

  2. You can also filter or refine the data :

    1. Under the desired set, click Add a condition.

    2. Select the field from the input dataset.

    3. Select an operator. Depending on the field type, the available operators may vary.

    4. Click Confirm.

  3. Repeat the previous instructions to configure the second set of data.

  4. Choose how to compute the ratio using the parameters from the KPI content section:

    1. From the Ratio direction drop-down list, select either Set 1 on Set 2 or Set 2 on Set 1.

    2. (optional) In the Unit field, you can enter the unit associated to the indicator. By default, this unit is placed on the right side of the indicator. You can place it on the left by using the swap toggle.

  5. Click Next to continue with the configuration.

Step 5: Configure the visualization styles

Studio includes several predefined layouts for KPIs to display the appropriate data. These layouts help you control how the KPI appears on the page to make it easier to understand.

Some KPI colors are inherited from portal theme colors configured in the back office:

KPI element

Portal theme element

KPI title

Titles

KPI context

Text

Block borders

Boxes border

For more information about configuring portal theme colors, see Colors.

The block background is white and cannot be configured.

To configure the visualization styles:

  1. Select a layout.

  2. Depending on the selected layout, you can add elements to your KPI: a context, a title, or an image. You can either add an image previously uploaded into the plaform, or a public image from the Internet. a. To use an image from your domain, copy its URL from the back office Assets page to the Image asset URL field. b. To use an image that is not on your domain, paste its URL to the Image asset URL field.

  3. Click Finish.

You can see a summary of the block configuration parameters in the side pane.

  1. Check the block configuration and click Save.

Your KPI appears in the preview pane.

Once you completed the block configuration, you can click the block again in the preview pane to check and edit the KPI parameters in the side pane.