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

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
- Select KPI Card+ in the PI Vision symbol gallery.
- Drag one PI Point or AF attribute onto the display. The card shows the current value, its unit, and its label.
- Right-click the card and select Configure KPI Card+....
- Under Value, keep Source set to Current.
- Under Sparkline, set Enabled to ON.
- Close the configuration pane. The card shows a line of recent history behind the value.

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

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.

Compare the value with a target
Use this when readers need to know how far the value is from a goal.
- Under Target, set Enabled to ON (1).
- Set Show to ON (2) to print the target value after the comparison.
- Select Fixed for Source (3).
- Enter the target in Value (4), for example 50.
- Select Value or Percent for Difference (5).
- Select Higher is better or Lower is better for Direction (6).

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.

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.
- Right-click the card and select Add Multi-State.... When the card already has one, the command reads Configure Multi-State....
- Under Property, select a style (1), for example Soft Fill.
- Read the states list (2). If the data source has limits in AF, they appear here with their colors.
- 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).


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:

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

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.

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.
- Under Value, open Display unit (1).
- Select a unit from the list, for example degree Fahrenheit (°F).

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).

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.
- Under Style, select a Theme tile (1).
- Select Flat or Gradient for Surface (2).
- Select a Container Style tile (3).
- Select a size for the Value under Font Size (4).
- Select Left, Center, or Right for Alignment (5).

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

Use the symbol

| 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
| Setting | What it does |
|---|---|
| Source | Current 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 Type | Total, Average, Minimum, Maximum, Range (maximum minus minimum), Standard Deviation, Population StdDev, Count, or Percent Good. Available when Source is Calculated. |
| Basis | Time Weighted accounts for how long each value stays active. Event Weighted gives each recorded event equal weight. Available when Source is Calculated. |
| Conversion Factor | A 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 Endtimes | The 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, Timestamp | Show 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 unit | Default 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. |
| Format | The 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
| Setting | What it does |
|---|---|
| Theme | Selects the color theme, from Software Athlete to Custom Theme. Custom Theme adds Text, Background, Border, and accent colors and a Font. |
| Surface | Flat or Gradient fill. |
| Container Style | The frame around the card: None, Flat, Card, Framed, or Glass. |
| Apply to all symbols | Copies the theme, surface, container style, and display background to every other Vision Library+ symbol on the display. |
| Font Size | Sets the size of the Value and the Label. Choose a size from the list or Custom. |
| Alignment | Places the text on the Left, in the Center, or on the Right. |
Used in Change what the card shows and how it looks.
Sparkline
| Setting | What it does |
|---|---|
| Enabled | Shows or hides the sparkline. |
| Type | Line draws a line with a translucent area. Bars draws columns, with fewer intervals so each column stays readable. |
| Placement | Overlay draws behind the card content. Bottom reserves a lower strip so nothing overlaps. |
| Time Range | Shows or hides the period label, such as 24h or 7d, in the lower-left corner. |
| Target as baseline | Draws 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 Endtimes | The 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
| Setting | What it does |
|---|---|
| Enabled | Shows or hides the target comparison. A numeric data source is required. |
| Show | Adds the benchmark value to the badge, for example -3.2% vs. 1d avg · 75 °C. |
| Source | Fixed 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. |
| Value | The fixed target, read in the displayed unit. Available when Source is Fixed. |
| Mode | Past 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. |
| Difference | Value shows a signed difference such as +5 °C. Percent shows a signed percentage. Percent is blank when the target is zero. |
| Direction | Higher is better or Lower is better sets the badge color. The arrow only shows the numeric direction. |
| Tolerance | When 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
| Setting | What it does |
|---|---|
| Hide No Data | Hides the card content when the value is the exact PI state No Data. |
| Stale warning | Shows 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.
| Setting | What it does |
|---|---|
| Multi-State Source | The data item whose value selects the state. Drop another data item on it to replace it. |
| Property | How 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. |
| States | The 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
| Symptom | Cause | What 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.
