Documentation Vision Library+ Documentation

KPI Card+

KPI Card+ shows one PI Point or AF attribute as a compact dashboard card: a large value, its label, and optionally a comparison with a target, a short history, and a color that follows your limits. Place several cards side by side to build a KPI dashboard.

Overview

A grid of KPI Card+ symbols: values with targets, line and bar sparklines, progress bars, and colored limit states

When to use it

Use KPI Card+ when you need to:

  • Put one important value, such as a temperature or a production rate, in large type.
  • Show a summary of a period, such as the maximum or average, instead of the live value.
  • Compare the value with a fixed target, the value an hour ago, or a recent average.
  • Add a short history without a trend symbol.
  • Color the card by limits, or show how far the value has moved through them.

Choose Value+ when operators need its floating trend more than a dashboard card.

Before you begin

  • Use one PI Point or AF attribute per card. For several KPIs, add several cards.
  • Use a numeric data source for summaries, targets, sparklines, and progress styles. Text, Boolean, enumeration, and timestamp values can be shown, but nothing is calculated from them.
  • Make sure PI Web API can read the data source's history when you plan to use a summary, a calculated target, or a sparkline.

Add and set up the symbol

  1. Select KPI Card+ in the PI Vision symbol gallery.
  2. Drag one PI Point or AF attribute onto the display. The card shows the current value, its unit, and its label.
  3. Right-click the card and select Configure KPI Card+....
  4. Under Value, keep Source set to Current.
  5. Under Sparkline, set Enabled to ON.
  6. Close the configuration pane. The card shows a line of recent history behind the value.
KPI Card+ with a line sparkline

Common tasks

Show a value with a sparkline

Use this when readers need to see whether a value is rising or falling, without opening a trend.

  1. Right-click the card and select Configure KPI Card+....
  2. Under Sparkline, set Enabled to ON (1).
  3. Select Line or Bars for Type (2).
  4. Select Overlay to draw the sparkline behind the text, or Bottom to reserve its own strip (3).
  5. Under Start- and Endtimes (4), select Duration and offset, and enter a Duration (5), for example 4 hours.
Sparkline group with Enabled, Type, Placement, Start- and Endtimes, and Duration marked

The card draws the history of the chosen period and prints its length, such as 4h, in the lower-left corner. A dot marks the latest point of the line.

Card with a four-hour line sparkline in a bottom strip

Compare the value with a target

Use this when readers need to know how far the value is from a goal.

  1. Under Target, set Enabled to ON (1).
  2. Set Show to ON (2) to print the target value after the comparison.
  3. Select Fixed for Source (3).
  4. Enter the target in Value (4), for example 50.
  5. Select Value or Percent for Difference (5).
  6. Select Higher is better or Lower is better for Direction (6).
Target group with the six settings marked

A badge under the label shows the difference from the target, for example -38.0% vs. Target · 50 °C. The arrow shows whether the value is above or below the target. The badge turns green when that direction is favorable and red when it is not.

Card with a badge showing -38.0% against a target of 50 degrees Celsius

To compare with the value at an earlier time or with a recent average, select Calculated for Source and see Target. To treat small deviations as on target, use the Tolerance settings in the same group.

Color the card by limits

Use this when the whole card must show whether the value is normal, high, or low.

  1. Right-click the card and select Add Multi-State.... When the card already has one, the command reads Configure Multi-State....
  2. Under Property, select a style (1), for example Soft Fill.
  3. Read the states list (2). If the data source has limits in AF, they appear here with their colors.
  4. For a data source without limits, type a limit value in the box under States and select Add. The second image shows the box (1), Add (2), and the list of existing limits (3).
Multi-state pane for a data source with AF limits, with Property and the states list marked
Multi-state pane with a typed limit of 95 ready to add

The card takes the color of the state that holds the current value. Progress, Progress and Value, Fill Level, and Radial Progress place the value between the lowest and highest limit instead of coloring the card. These examples show Soft Fill, Solid Fill, Border, Progress, Fill Level, and Radial Progress:

Six cards using the Soft Fill, Solid Fill, Border, Progress, Fill Level, and Radial Progress styles

Show a summary instead of the live value

Use this when the KPI is a result for a period, such as the highest temperature of a shift.

  1. Under Value, select Calculated for Source (1).
  2. Select a Summary Type (2), for example Maximum.
  3. Select the Basis (3): Time Weighted counts how long each value lasted, Event Weighted counts every recorded event once.
  4. Under Start- and Endtimes (4), select Duration and offset, and enter a Duration (5), for example 8 hours.
  5. Under Content, enter a Label that names the period, for example Max temperature, last 8 h.
Value group with Calculated, Summary Type, Basis, Start- and Endtimes, and Duration marked

The card shows the maximum of the last eight hours before the display end time. Nothing on the card says that the value is a summary, so name the period in the label.

Card showing the maximum of the last 8 hours

Show the value in another unit

Use this when readers expect a different unit than the one stored in AF, such as degrees Fahrenheit instead of Celsius.

  1. Under Value, open Display unit (1).
  2. Select a unit from the list, for example degree Fahrenheit (°F).
Display unit list set to degree Fahrenheit, with the Format list below it

The value, its unit, the sparkline, and the target comparison switch to the new unit. The list offers units of the same kind as the attribute. Default follows the unit set in AF. If a converted value loses detail, choose more decimals under Format (2).

Card showing 164.62 degrees Fahrenheit with its sparkline

Important: A Fixed target, an Absolute tolerance, and typed multi-state limits are read in the displayed unit and are not converted. Enter them again after you change Display unit.

Change what the card shows and how it looks

Use this to make cards match your display or to fit a small space.

  1. Under Style, select a Theme tile (1).
  2. Select Flat or Gradient for Surface (2).
  3. Select a Container Style tile (3).
  4. Select a size for the Value under Font Size (4).
  5. Select Left, Center, or Right for Alignment (5).
Style group with Theme, Surface, Container Style, Value font size, and Alignment marked

The card changes immediately. To hide the unit, label, or value, or to add a timestamp, use the Content settings under Value.

Card in the Steel Blue theme with a framed container and right-aligned text

Use the symbol

KPI Card+ with six numbered callouts
What it shows
(1)The value and its unit. A summary or the value at the display end time, depending on Source.
(2)The label. Hover to see it in full when it is cut off.
(3)The target comparison: arrow, difference, what it is compared with, and optionally the benchmark.
(4)The sparkline of recent history. A dot marks the latest point of a line.
(5)The target as the zero line of the sparkline. Available when Target as baseline is on.
(6)The period the sparkline covers.
  • Arrow and color: An up arrow means the value is above the benchmark and a down arrow means below. Green means the direction is favorable, red unfavorable. A value inside the tolerance has no arrow and a neutral color.
  • Display time: A Current value shows the value at the display end time, so it follows playback and historical display times. Summaries and sparklines follow the range they are set to.
  • Limit colors: A multi-state style colors or fills the whole card. A small dot in the corner marks the Status Dot style.
  • No Data: The card shows the PI state, for example No Data, with a gray dot. Hover over a dot to read its meaning.
  • Bad, questionable, or substituted values: A small colored dot appears in the corner. Hover over it for the reason.
  • Stale: When Stale warning is on and a live value is older than the threshold, an amber indicator appears. The threshold is 2 hours by default.
  • Hide No Data: The card content is hidden. In edit mode, a dashed box labeled Hidden: No Data keeps the card selectable.
  • Links: When you add a navigation link with Add Navigation Link..., select the card to follow it.
  • The symbol only displays data. It does not write to the PI System or change other symbols.

Configure the symbol

Right-click the card and select Configure KPI Card+.... The groups are Value, Style, Sparkline, Target, and Data Quality. Web API, License Status, Help, and About are shared by all Vision Library+ symbols. Limit colors are set in the multi-state pane (see Multi-state pane).

Value

SettingWhat it does
SourceCurrent shows the value at the display end time. Calculated shows a summary over a range. Used in Show a summary instead of the live value.
Summary TypeTotal, Average, Minimum, Maximum, Range (maximum minus minimum), Standard Deviation, Population StdDev, Count, or Percent Good. Available when Source is Calculated.
BasisTime Weighted accounts for how long each value stays active. Event Weighted gives each recorded event equal weight. Available when Source is Calculated.
Conversion FactorA number and a time unit (second to month) that scale a time-weighted total. Available when Summary Type is Total and Basis is Time Weighted.
Start- and EndtimesThe range of the summary. Display time range (default) uses the PI Vision range. Custom time range takes PI start and end time expressions. Duration and offset takes a duration before the display end time, optionally shifted back by an offset. Available when Source is Calculated.
Value, Units, Label, TimestampShow or hide each part. A hidden part leaves no gap. Label offers the data source labels or a custom text. Timestamp adds a date and time format list.
Display unitDefault shows the unit AF holds, for example Default (L). A unit from the list converts the value, sparkline, calculated target, and AF limits to that unit. Unavailable for a PI Point, for an attribute without a unit of measure in AF, and for non-numeric values. Used in Show the value in another unit.
FormatThe number format: Database, General, Number, or Scientific.

A total over time is not converted by Display unit. It stays in the attribute's own unit and is labeled with it. Count and Percent Good are not converted either. Range and standard deviations change by the unit's scale only.

Style

SettingWhat it does
ThemeSelects the color theme, from Software Athlete to Custom Theme. Custom Theme adds Text, Background, Border, and accent colors and a Font.
SurfaceFlat or Gradient fill.
Container StyleThe frame around the card: None, Flat, Card, Framed, or Glass.
Apply to all symbolsCopies the theme, surface, container style, and display background to every other Vision Library+ symbol on the display.
Font SizeSets the size of the Value and the Label. Choose a size from the list or Custom.
AlignmentPlaces the text on the Left, in the Center, or on the Right.

Used in Change what the card shows and how it looks.

Sparkline

SettingWhat it does
EnabledShows or hides the sparkline.
TypeLine draws a line with a translucent area. Bars draws columns, with fewer intervals so each column stays readable.
PlacementOverlay draws behind the card content. Bottom reserves a lower strip so nothing overlaps.
Time RangeShows or hides the period label, such as 24h or 7d, in the lower-left corner.
Target as baselineDraws the target as the zero line. The line area closes against it and bars extend above or below it, colored by Direction. Available when Target is enabled. Without a target value the sparkline uses its normal baseline.
Start- and EndtimesThe range of the history: Display time range, Custom time range, or Duration and offset.

Used in Show a value with a sparkline. A sparkline needs numeric history. When it is unavailable, only the sparkline is hidden and the value stays.

Target

SettingWhat it does
EnabledShows or hides the target comparison. A numeric data source is required.
ShowAdds the benchmark value to the badge, for example -3.2% vs. 1d avg · 75 °C.
SourceFixed uses one entered number. The middle choice, between Fixed and Calculated, uses the Target trait that the AF attribute provides with its multi-state limits, and shows no comparison when there is none. Calculated uses an earlier value or a recent average of the same data source.
ValueThe fixed target, read in the displayed unit. Available when Source is Fixed.
ModePast value reads the recorded value at or before one Time, such as *-24h, y, or an absolute timestamp, evaluated against the display end time. Average averages over Display time range, Custom time range, or Duration and offset. Available when Source is Calculated.
DifferenceValue shows a signed difference such as +5 °C. Percent shows a signed percentage. Percent is blank when the target is zero.
DirectionHigher is better or Lower is better sets the badge color. The arrow only shows the numeric direction.
ToleranceWhen enabled, a value within Value of the target counts as on target: neutral color, no arrow. Mode is Absolute (same unit as the data) or Percent. The boundary is inclusive.

Used in Compare the value with a target.

Data Quality

SettingWhat it does
Hide No DataHides the card content when the value is the exact PI state No Data.
Stale warningShows an amber indicator when a live current value is older than the stale threshold.

See Data Quality for the shared rules and the administrator override.

Multi-state pane

Right-click the card and select Add Multi-State... or Configure Multi-State.... This is the PI Vision multi-state pane. Used in Color the card by limits.

SettingWhat it does
Multi-State SourceThe data item whose value selects the state. Drop another data item on it to replace it.
PropertyHow the state shows on the card: Accent + Tint, Text, Border, Soft Fill, Status Dot, Value Badge, Solid Fill, Progress, Progress and Value, Fill Level, or Radial Progress.
StatesThe color of each state and its upper limit. Type a limit and select Add to create a state. The state colors also drive the sparkline.

Troubleshooting and limitations

SymptomCauseWhat to do
A calculated value is missing.The data source is not numeric, PI Web API cannot read its history, or the range holds no data.Check the data source type, the range, and the PI Web API connection.
No target badge appears.The value or the target is not numeric, or a target from AF has no Target trait.Use a numeric data source and check the Target trait on the attribute.
A past-value target is missing.No value exists at or before the chosen time.Choose a later time or use an average.
The percent difference is blank.The target is zero.Select Value for Difference.
No sparkline appears.The data source is not numeric or has no history in the range.Check the data type and widen the range.
Progress does not move as expected.The lowest value and the limits define the progress range.Review the limits in the multi-state pane.
The value is 1,000 or 1,000,000 times off.The attribute's unit in AF carries a prefix, for example k m3.Check the unit in AF, or choose the unit you expect under Display unit.
Display unit is unavailable.The data source is a PI Point, has no unit of measure in AF, or is not numeric.Use an AF attribute with a unit of measure.
A warning says a unit cannot be converted.The attribute's unit was changed to another kind in AF.Choose Default or another unit, or correct the attribute in AF. The card shows the attribute's own unit meanwhile.
The comparison or state is wrong after changing Display unit.Typed targets, tolerances, and limits are read in the displayed unit.Enter them again in the new unit.
The value reads 0 after choosing a unit.The unit is much larger than the stored one.Choose a Format with more decimal places.
A timestamp value is cut off.The text is wider than the card.Enlarge the card or choose a smaller Value font size.

Limitation: KPI Card+ supports one data source and one target per card.

Limitation: Target ranges and bands are shown through multi-state limits, not through a separate target-range setting.