Documentation Vision Library+ Documentation

Event Analytics KPI+

Event Analytics KPI+ turns event frames into KPI cards: how many events happened, the total or average of an attribute, or the same result for each root cause, asset, or shift. Cards can change color with your limits, show the gap to a target, and follow an Event Filter+ on the same display.

Overview

Six KPI cards showing production loss by root cause, colored green, amber, and red by limits

When to use it

Use Event Analytics KPI+ when you need to:

  • Count the events in the display time range.
  • Show the total, average, minimum, or maximum of an event attribute, such as downtime or production loss.
  • Split a result into one card per root cause, asset, or other category.
  • Keep only the largest or smallest categories and group the rest as Others.
  • Color cards by limits, or compare them with a target.
  • Let operators narrow the cards with an Event Filter+.

Choose KPI Card+ for one PI Point or attribute with a sparkline or a history comparison. Choose Event Analytics Pivot+ when you need a grid with two categories at once. Choose Event Analytics Table+ when readers need the list of categories with several summaries side by side.

Before you begin

  • Prepare an event frame template with events in the display time range.
  • For a sum, average, minimum, maximum, median, or standard deviation, use a numeric attribute or Duration. Text attributes offer only Count and Count Distinct.
  • The cards follow the display time range and the event search of the symbol. Units come from the AF attribute.

Add and set up the symbol

  1. Select Event Analytics KPI+ in the PI Vision symbol gallery.
  2. Search for the events, then drag an event attribute such as Loss from the Event Frame Search results onto the display. The symbol starts with one card that counts the events.
  3. Right-click the symbol and select Configure Event Analytics KPI....
  4. Under Dimension, open Values. Set Value to |Loss and Summary to Sum.
  5. Enter Total loss as the Title.
  6. Close the configuration pane. The card shows the total loss of all events, with the unit from AF.
One card showing the total production loss

Note: Event attributes show a leading | in the Value lists. Event properties such as Name, Duration, and Start Time have none.

Common tasks

Count events and summarize an attribute

Use this when one card is not enough, for example the number of events next to the total loss and the total downtime.

  1. In the configuration pane, open Values.
  2. Select + (1) to add a value.
  3. Set Value (2) to the property or attribute, for example Name, |Loss, or Duration.
  4. Set Summary (3) to Count, Sum, Average, or another calculation.
  5. Enter a Title (4) such as Events or Total downtime.
  6. Repeat for each card.
Values group with three values and the settings of the second one marked

Each value becomes one card. Show set to OFF keeps a value in the list without a card. A time attribute such as Duration shows as a readable time span.

Three cards: number of events, total loss, and total downtime

Split the result into one card per category

Use this when you want the same calculation for each root cause, asset, or shift, or only for the largest ones.

  1. Open Series and select + (1).
  2. Set Value (2) to the attribute that defines the cards, for example |Root Cause|Level1. A hierarchical attribute offers one entry per level.
  3. Check Sort Order (3) and Sort by (4). Sort by is the value that orders the cards, and Descending puts the largest first. Select Category to sort by the names instead.
Series group with Root Cause Level1 as the value, sorted by production loss

The symbol shows one card for each root cause, titled with the category. With several values, every value is calculated for every category. With several series, every combination gets a card, such as Maintenance - Unknown, unless Drilldown is the click action.

Eight cards, one for each root cause

To keep only the leaders when many categories would crowd the symbol:

  1. In Series, set Top N (1) to ON and Mode (2) to Top. Select Bottom for the smallest categories.
  2. Enter the Count (3), for example 3.
  3. Set the ranking Value (4) to the value that decides the order.
  4. Leave Others (5) ON to add one card that applies the same summary to all remaining categories.
Series group with Top N on, a count of 3, and Others on

The symbol shows the three leading categories and an Others card. With a sum, Others keeps the grand total complete.

Three root cause cards and an Others card

Color cards by limits

Use this when readers must see which cards are normal, high, or low without reading the numbers.

  1. Right-click the symbol and select Add Multi-State.... When limits exist, the command reads Configure Multi-State....
  2. Select the value in the Values list, then select Enable multi-state (1).
  3. Under Property (2), choose how the color is drawn. Accent + Tint colors the card edge and surface.
  4. Under Status, type a limit (3) and press Enter or select +. Add one limit for each color you need.
  5. Choose a color for each limit (4). A card takes the color of the lowest limit that is greater than or equal to its value.
  6. Choose the Error color (5). It colors values above the highest limit and cards without a number.
Multi-State pane with two limits and the error color

The cards take the colors. Here limits of 50 and 110 give green up to 50, amber up to 110, and red above. For a time attribute such as Duration, type the limits as time spans, for example 1h or 1d.

Cards in red, amber, and green

Compare cards with a target

Use this when readers should see how far each card is from a goal.

  1. Open Values and select the value in the list.
  2. Set Enabled (1) under Target to ON.
  3. Set Show (2) to ON to add the target value to the badge. Leave it OFF to keep repeated cards compact.
  4. Enter the target Value (3). For a duration, enter a time span.
  5. Set Difference (4) to Value for the signed difference, or Percent for a percentage. A percentage is not shown for a target of 0.
  6. Set Direction (5) to Higher is better or Lower is better.
Values group with the target settings marked

Each card shows a badge under its title. The arrow points up when the card is above the target and down when it is below, and no arrow shows at equal values. The color follows Direction, so an up arrow is red when lower is better. The target applies to every card of the value.

Three cards with badges showing the difference to a target of 60 tonnes

Narrow the cards with Event Filter+

Use this when readers should choose which events the cards summarize. Add an Event Filter+ to the display that publishes a Master filter and lists an attribute readers pick from.

  1. Select an entry in the Event Filter+ list (1).
  2. The cards recalculate for the matching events.
  3. In the symbol's configuration pane, open Interactivity > Filtering and set Filter Indicator to Full. The indicator (2) shows how many events remain.
  4. To keep one symbol unaffected, set Ignore Master to ON.
Event Filter+ with one entry selected next to a KPI symbol showing 7 of 46 events

The values (3) now cover only the selected events. Clear the selection in the Event Filter+ or through the indicator to see all events again. The filter matches the exact value, so a parent entry does not include its sub-causes. See Filtering dashboards for linked channels.

Check the events behind a card

Use this when a reader asks which events make up a card, or needs the numbers in a spreadsheet.

  1. Hover the symbol and select Inspect Data in the toolbar at its top right.
  2. In the Summary tab, select a row (2), for example Operator error. The tab has one row for each card with its value and unit, and the target and difference when the card shows them.
  3. Select the Rows tab. It lists the events behind that card with their properties and attributes, here 5 of 46 events.
  4. To keep the data, select CSV, JSON, or XLSX (4). The file holds the tab you are viewing.
Inspect Data dialog with the Operator error card selected

The count (1) shows how many rows the tab holds, and Data as of (3) when the dialog read the cards. Select Refresh to read it again. Select the same Summary row again to see all events.

Use the symbol

KPI cards with numbered callouts
What it shows
(1)The calculated value with its unit. The color follows the limits, when set.
(2)The card title: the category, or the Title of the value when there is no series.
(3)The accent bar. With Accent + Tint it shows the limit color.
(4)The target badge: an arrow, the signed difference, and "vs. Target". It shows when the value has a target.
  • Time range: the cards follow the display time range. Change the range and the numbers follow.
  • Toolbar: hover the symbol to show the buttons in its top-right corner. Inspect Data shows the summary and the events behind the cards, see Check the events behind a card. Clear Filter shows while a selected card filters the display or the cards have drilled down, and clears that selection or drill-down. Download saves one row for each card as CSV, JSON, or XLSX. Your administrator can hide Download and the export buttons of Inspect Data.
  • Click Action: the designer chooses what a click does. None does nothing. Drilldown needs two or more series: a click replaces the cards with the next series for the clicked category, and a drill-up button appears at the top right. Filter selects the card and publishes it as an event filter for the other symbols. Select the card again to clear it.
  • Filters from other symbols: an Event Filter+ or another event symbol narrows the cards, and a filter indicator appears when the designer enabled it.
  • No events: when nothing matches, the cards stay in the configured style. A count, distinct count, or sum reads 0 and every other summary reads a dash. These cards cannot be clicked.
  • Edit mode: a symbol with events but no visible value shows a short "No values configured" hint. Add a value or set Show to ON.
  • The symbol only displays data. It does not write to the PI System.
Three cards for a time range without events: a count of 0, a sum of 0, and a dash

Configure the symbol

Right-click the symbol and select Configure Event Analytics KPI.... The groups appear in this order. The right-click menu also offers Add Multi-State... and Search Criteria....

Dimension > Values

One entry for each calculation. Use + to add one and the arrows to reorder.

SettingWhat it does
ValueThe event property or attribute to summarize. Properties include Name, Description, Duration, Duration in Range, Duration in Range, Overlaps Merged, Start Time, End Time, Asset, Severity, and Template Name. Duration is the whole event frame. Duration in Range is only the part inside the symbol's time range; use Sum for the time within the shown period. Duration in Range, Overlaps Merged is the same, but time already covered by an earlier event frame on the same asset counts once; use it when event frames on one asset can overlap. Attributes start with a vertical bar. Used in Count events and summarize an attribute.
SummaryCount, Count Distinct, Sum, Min, Max, Average, Median, or Standard Deviation. Text attributes offer Count and Count Distinct.
TitleThe card title when there is no series. Without it the title is the summary and the property name.
ShowOFF keeps the value in the list without a card.
Target > EnabledAdds the badge under the card title. Used in Compare cards with a target.
Target > ShowAppends the target value to the badge.
Target > ValueThe target. Enter a number, or a time span for a duration.
Target > DifferenceValue shows the signed difference. Percent shows it as a percentage.
Target > DirectionHigher is better or Lower is better. It decides whether the badge is favorable, independent of the arrow.

Dimension > Series

One entry for each grouping. With several series, every combination gets a card, unless Drilldown is the click action.

SettingWhat it does
ValueThe property or attribute that defines the cards. Used in Split the result into one card per category.
Group IntervalAvailable for date properties such as Start Time. Groups by day, month, year, and other intervals.
Show Empty PeriodsAvailable with a Group Interval. Adds periods without events.
CaptionNames the entry in the list.
Sort Order, Sort byOrder the cards. Sort by is Category or one of the values.
Top NKeeps the top or bottom entries. Mode, Count, Value, and Others set the details. Used in Split the result into one card per category.

Card Options > Layout

SettingWhat it does
AlignmentAuto fits the cards to the symbol size. Rows or Columns fixes the number of lines.
CountAvailable when Alignment is Rows or Columns. The number of lines.
SpacingThe gap between cards.

Card Options > Style

SettingWhat it does
Theme, Surface, Container StyleA shared look for the cards. Custom Theme adds Text, Background, and Font settings.
Apply to all symbolsCopies the theme, surface, container style, and display background to every other Vision Library+ symbol on the display. Not available with Custom Theme.
Font SizeValue and Title sizes.
AlignmentLeft, Center, or Right text.
Show Aggregation in CaptionON appends the summary, such as Average, to the title of a card without a series.

Card Options > Toolbar

SettingWhat it does
Show ToolbarTurns the toolbar with Inspect Data, Clear Filter, and Download on or off. On by default.
RevealOn Hover shows the toolbar in the top-right corner when the pointer is over the symbol. Always keeps it in view above the cards.

Interactivity > Selection

SettingWhat it does
Click ActionNone, Drilldown, or Filter. Drilldown and Filter exclude each other.
SelectionAvailable when Click Action is Filter. Single replaces the previous card. Multiple keeps several cards selected.

Interactivity > Filtering

SettingWhat it does
Filter IndicatorCompact shows a filter icon, Full adds the event count, and Hidden shows nothing. Used in Narrow the cards with Event Filter+.
Ignore MasterON ignores master filters. Linked inputs still apply.
Linked InputsMaps a named channel from a publisher to an event property. See Filtering dashboards.
Output ModeAvailable when Click Action is Filter. Master, Linked, or Both decides how a selected card is published.
Linked OutputsAvailable with Linked or Both. Maps a property to a named channel.

Attributes

The event attributes the symbol loads and offers in the Value lists. Use the buttons below the list to add, remove, or reorder entries.

Numbers

The number format of card values. Units and decimals follow the AF attribute unless you choose a format.

Search Criteria

Opened from the right-click menu. Choose the database, time range, event name, severity, asset, template and attribute values, and the number of results, then select Apply. Reset restores the search. By default the time range follows the display time range.

Add Multi-State

Opened from the right-click menu. Used in Color cards by limits.

SettingWhat it does
ValuesThe list of values. Each value has its own limits.
Enable multi-stateTurns on coloring for the selected value.
PropertyHow the color is drawn: Text, Border, Soft Fill, Accent + Tint, Status Dot, Value Badge, Solid Fill, Progress, Progress and Value, Fill Level, or Radial Progress.
StatusOne row per limit with a color. Limits compare with less than or equal, and the list sorts from the highest. For a duration, type time spans such as 1h.
ErrorThe color for values above the highest limit, values that are not numbers, and cards without data. A transparent color leaves them unpainted.

Troubleshooting and limitations

SymptomCauseWhat to do
The symbol is blank.Every value has Show set to OFF.Set Show to ON for at least one value.
Every card reads 0 or a dash.The search finds no events in the display time range, or a filter excludes all.Change the display time range, open Search Criteria... and widen the search, or clear the filter.
A total or average looks too low or high.The search, or an Event Filter+, changes which events count.Compare with a Count card, or check the filter indicator.
Clicking a card does nothing.Click Action is None, the symbol has no series, Drilldown has only one series, or Output Mode is not set.Set Click Action, add the series, and for Filter choose an Output Mode.
Every card is red.No limits exist yet, or every value is above the highest limit.Add limits, or raise the highest one. The red is the Error color.
A duration limit does not work.The limit was typed as a number.Type a time span such as 1h or 1d.
Selecting a cause in the Event Filter+ leaves out its sub-causes.The filter matches the exact value.Select the sub-cause entries as well.

Limitation: The symbol summarizes only the events that its search returns in the display time range.

Limitation: A target applies to every card of its value. You cannot set a different target for each category.