Task 1: Creating metrics and KPIs

In this task, you create metrics and use them to define KPIs.

About this task

A metric is a measurement of data. In the Miniloan Service decision service, the metrics include the amount, duration, and credit score of a loan. The decision service produces these metrics for each loan request. You gather these metrics for comparison in key performance indicators (KPIs). For example, a KPI can be the average amount of a group of loans, or it can be the amount of loans by credit score.

You start by creating a branch in the decision service, and then you create the metrics and KPIs that you use in the tutorial.

Attention:

The tutorial does not cover collaborative development in the decision governance framework. You work in a branch of the decision service, and not in release activities.

Step 1: Creating a branch

In this step, you create a branch that is based on the main branch in the decision service.

Procedure

  1. Log in to the Decision Center Business console. Enter Paul as the user name and password.
  2. On the Library tab, click Miniloan Service.
  3. On the Branches tab, click the New Branch button "".
  4. Enter My Tutorial as the name of your branch, select main as the parent branch, and click Create.
    The Business console displays your new branch of Miniloan Service.
  5. Click the X in the Types button to display the decision artifacts.

Step 2: Creating metrics

In this step, you create a metric for the amount of the loan. The Business console uses the contents of the decision service to determine the types of metrics that you can create for the simulation.

Procedure

  1. Open the Simulations tab, and then open the Metrics subtab.
    Important: The decision service might contain simulation artifacts from the main branch. You do not use these artifacts in this tutorial.
  2. Click the Create button "" to make a metric.
  3. Enter Amount of the loan as the name of the metric, and leave Numeric as the type.
    The type determines the expression that you can declare for the metric. You must set the type before you compose the expression.
  4. In the metric expression field, enter the following text:
    the amount of 'the loan'
    Tip:

    You can copy the expression into the editor, or you can press Ctrl+Space to use the completion menu.

  5. Click Save, and then Create New Version.
  6. Repeat steps 2 - 5 to make the following metrics:
    Name Type Metric expression
    Credit score Numeric the credit score of 'the borrower'
    Approved loan Boolean 'the loan' is approved
    Duration of the loan Numeric the duration of 'the loan'
    Yearly income Numeric the yearly income of 'the borrower'

Step 3: Creating KPIs

In this step, you create a KPI for the average credit score. A KPI compiles similar metrics into a representative value. In a simulation report, you can present a KPI as a string or a comparative graph.

Procedure

  1. Open the KPIs subtab.
  2. Click the Create button "" to make a KPI.
  3. Enter Average credit score as the name of the KPI.
  4. In the KPI expression field, enter the following text:
    average 'Credit score'
    Tip:

    You can copy the expression into the editor, or you can press Ctrl+Space to use the completion menu.

  5. Click Save, and then Create New Version.
  6. Repeat steps 2 - 5 to create the following KPIs:
    Name KPI expression
    Average income average 'Yearly income'
    Average loan amount average 'Amount of the loan'
    Income and duration sum of 'Duration of the loan' grouped by 'Yearly income' with a 6 interval
    Loan by credit score average 'Amount of the loan' grouped by 'Credit score' with a 10 interval
    Number of approved loans number of 'Approved loan'

What to do next

In the next task, you create a scenario data file, and import it into the Business console.