ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

›Advanced Guides

About

  • Introduction
  • ActiveUI SDK
  • ActiveUI
  • What's New?
  • Webinars
  • Frequently Asked Questions

Features Reference

  • ActiveMonitor
  • Alerts
  • Bookmark Tree
  • Calculated Measures
  • Charts
  • Content Editor
  • Dashboards
  • Data Explorer
  • Data Sorting
  • Deferred Update
  • Drillthrough
  • Expand - Collapse
  • Exporting and sharing
  • Featured Values
  • Filtering
  • Formatting
  • HTTP widget
  • Messages
  • Keyboard Shortcuts
  • KPI
  • Mdx Editor
  • Monitor List
  • Monitor View
  • Moving widgets
  • Page Filters
  • Parameter List
  • Pivot Table
  • Query Mode
  • Quick Filter
  • Rules Editor
  • Search content
  • Shared Context Values
  • State Editor
  • Table Layout
  • Tabular View
  • Text Editor
  • Widget
  • Workflows

Advanced Guides

  • Charts Gallery
  • Day-to-day difference
  • MDX Resources
  • Monitor Measures

Monitor Measures

Although examples on this page are non-exhaustive, they illustrate some of the ActiveMonitor key features and approaches both for end-users and more technically advanced users.

  • Simple KPI with rules

    Setting up a trigger that will notify users as soon as New York’s sales in GBP and EUR fall below 10000 and 15000 units respectively.

  • Watching a calculated measure

    Setting up a monitor to watch a calculated measure (Gross Risk).

  • Tracking one measure against another measure

    An alert needs to be sent when a city migrates from having above average sales to below average sales.

  • Looping over members in a hierarchy/level

    When a rule should apply For Each member of a hierarchy.

  • Custom MDX Status

    When a missing observation needs to be treated as an exception.

  • Slow-moving hierarchies (recommendation)

Simple KPI with rules

Suppose there is a requirement to set up a trigger that will notify users when New York's sales in GBP and EUR fall below 10000 and 15000 units respectively.

How many KPIs, monitors and rules are required in this example?

  • Since one measure needs to be tracked (sales) and one type of the critical interval ("sales ... fall below ...") is required - one KPI can handle the task.
  • Since only one workflow - notify users - is required, then one Monitor is enough.
  • Two benchmark values - 10000 and 15000 - may be set as two rules in the Rules Editor.

The workflow sending the notification needs to be pre-configured in the application by the product development team.

Step 1. Create a KPI

Right-click on a cube and select Create a KPI.

In this example, a KPI Sales Target is created with the following settings:

KPI Editor

Follow this link to read more about creating a KPI.

Step 2. Define rules

Using the Rules Editor, two new rules are defined, each having a filter on City New York and each of the currencies:

KPI Editor

Click Submit rules changes button.

Follow this link to read more about creating Rules.

As a result, two new parameter values are created. They can be viewed in the Parameter List widget.

Step 3. Create a Monitor

As described here, Monitors are created automatically when Rules are linked to Workflows.

Assign each rule a workflow and click Submit rules changes:

KPI Editor

A Monitor is created automatically. You can replace the default monitor name (KPI Name + workflow name) with a business relevant title:

KPI Editor

Step 4. Receive a notification

Depending on how the workflow is configured, you can receive notification messages and alerts, for example:

KPI Editor


Watching a calculated measure

Perhaps you need to set up a trigger based on a measure which does not exist in the cube, but you can compute it from the existing measures and dimensions.

For example: Gross Risk should not be higher than 1.4mln for desks, where Gross Risk is defined as a sum of absolute deltas of individual counterparties.

Step 1. Publish the measure

To link a KPI to a calculation, you need to publish the calculation into the cube using the Calculated Measure Editor.

In this example, Gross Risk is a calculated measure, computing the sum of individual counterparties' absolute exposures (delta.SUM).

Formula Editor

Step 2. Link a KPI

When the calculation is published, you can either create a new KPI from the cube's context menu, or by selecting Watch... from the column's context menu:

Watch Column

You may reuse an Existing KPI (together with critical interval setting and potentially rules) or create a new one:

KPI in Pivot

Finally, you can create a Monitor or view statuses in a Pivot:

KPI in Pivot


Tracking one measure against another measure

The KPI editor allows the comparison of one measure with another measure to generate an alert.

Suppose that an alert needs to be sent when a city migrates from having above average sales to below average sales.

This example requires a calculated measure to be published, but it may be possible that both measures are present in the cube - then the first step can be skipped:

Step 1. Publish the measure

Publish a measure computing the average across cities:

Average Sales Measure

Step 2. Create a KPI

Create a KPI based on Sales, benchmarked against the Average Sales

KPI with measure

Follow this link to read more about creating a KPI.

Once the KPI is created, you can drag the KPI Value, Goal and Status into a Pivot Table:

Average Sales Measure

Step 3. Create a Monitor

Create a new monitor as described on the Monitor List page.

Select KPI Status and the necessary aggregation levels in the Monitor's table. In this case Avg Sales Benchmark Status and City:

KPI in Pivot

Once the monitor is created, it is listed in the Monitor List widget together with its status statistics:

Average Sales Monitor


Looping over members in a hierarchy/level

If a rule is intended to apply to every member of a hierarchy/level, it is not necessary to create rules individually for each member. By adding a column with an aggregation level in the Rule Editor or monitor table, you refer to them as to members, hence even if the composition of the list changes, the rule will apply to each of them.

Add Rules Editor

Follow this link to read more: Creating a rule for each Member.

If there are several groups of members and several benchmark values that you would like to apply, you can group members by creating a hierarchy (ask your product development team about creating hierarchies). Then you will be able to filter the members by group and assign different benchmark values for different groups.

Custom MDX Status

By default, an empty KPI Value is treated as zero when KPI Status is evaluated.

In some organisations, a missing observation (i.e.an empty KPI Value) triggers the raising of an alert - this behaviour can be configured using custom MDX.

In the illustration below, a missing Exposure observation results in the red Exposure Limit Status of the KPI:

Empty observation

If the custom MDX is not defined, Null will not generate an alert because it is less than the Goal, This is default behaviour:

Empty observation

To configure a custom KPI Status definition,

  1. Create a New KPI
  2. Select desired critical interval type, for example, Upper Limit
  3. Select a measure which you would like to monitor, for example, Exposure
  4. Switch to MDX status definition by selecting the Custom critical interval.
  5. Select Status to start editing the underlying MDX.

Empty observation

The isEmpty event needs to contribute to -1 status of the KPI (-1 corresponds to red).

OR IsEmpty(
    KPIValue(
      "Exposure Limit"
    )
  )

Advanced users can experiment with MDX definitions of Value, Goal and Status using Custom critical interval type.


Slow moving hierarchies

This example is specific to finance domain where portfolio structure changes over time.

Nodes of a hierarchy (desks) may be used to define scopes in the Rules Editor. If a desk moves lower or higher in the hierarchy - the filter returns null. Hence the recommendation is to create an additional flat hierarchy, listing all the nodes. Using such a flat hierarchy makes the rules immune to desks moving lower or higher in a hierarchy.

← MDX Resources
  • Simple KPI with rules
    • Step 1. Create a KPI
    • Step 2. Define rules
    • Step 3. Create a Monitor
    • Step 4. Receive a notification
  • Watching a calculated measure
    • Step 1. Publish the measure
    • Step 2. Link a KPI
  • Tracking one measure against another measure
    • Step 1. Publish the measure
    • Step 2. Create a KPI
    • Step 3. Create a Monitor
  • Looping over members in a hierarchy/level
  • Custom MDX Status
  • Slow moving hierarchies
Copyright © 2019 ActiveViam