Trends
Trends draws the history of numeric tags from the plant historian. You use it to compare a pressure with a speed, to find out when something changed, and to export the data you see.

How it works
- The left list Tags shows the numeric tags of the runtime that is selected in the top bar. Text and boolean tags do not appear.
- You pick up to 8 tags. The counter shows
N/8and a Clear button removes the choice. - Tags with the same unit share one chart lane. Tags with different units get their own lane. Mixed units are never put on one axis.
- Your tag choice and your time range are saved in the browser, per runtime.
Empty states: Pick tags to compare (with the hint "Choose up to 8 tags on the left. Tags with the same unit share a chart.") and No numeric tags yet.
Step by step
- Open Monitoring → Trends.
- Type in Search tags or devices to filter, for example
Compressor. - Tick the tags. For the demo plant, tick the compressor pressure (
4!40004, bar) and the filler speed (1!40002, bottles/min). They get two lanes. - Choose a range chip: 1 hour, 6 hours, 24 hours or 7 days. The default is 1 hour.
- Drag over a chart to zoom into that time span.
- Use Earlier and Later to page back and forward by half the window.
- Click Live to follow new data.
- Click Download CSV to save what you see.

Controls
| Control | What it does |
|---|---|
| 1 hour / 6 hours / 24 hours / 7 days | Sets the window |
| Earlier / Later | Moves the window by half its length |
| Live | Refreshes every 15 s for ranges up to 6 hours, every 60 s for longer ranges |
| Refresh | Reloads now |
| Drag on a chart | Zooms into the selected span |
| Download CSV | Exports the visible series (see below) |
Aggregation: the line and the band
The aggregation is automatic. You cannot choose it. The Console picks a bucket size so that each tag has about 600 points on the chart. The bucket size goes from 1 second up to 2 hours (and at most 4 hours).
- The line is the average of each bucket.
- The shaded band is the minimum and the maximum of the bucket.
The band keeps short spikes visible even on a 7-day view. If the line looks calm but the band is wide, something moved fast inside the bucket. Zoom in to see it.
Quality rendering
Every sample in the history has a quality (good, uncertain, bad, unknown). The chart shows it so you never mistake a missing value for a zero.
| Look | Meaning |
|---|---|
| Solid line | Good readings |
| Dashed line | "uncertain or partly bad readings" |
| Gap in the line | "bad readings or no data" |
Labels in the tooltip: Good, Uncertain, Bad, no value, Quality not recorded (older historian data without a quality).
Overlays
| Overlay | Meaning |
|---|---|
| Normal range | The band from the tag's semantics (normal low and high) |
| Downtime | Shaded time spans where the machine had a recorded stop |
| Dotted vertical line | "unit or scaling changed. Values are not converted." |
The stats table
Under the charts: columns Tag, Last, Min, Average, Max for the visible window.
Users with plant-wide permission also get Correct the unit. You must give a reason. It marks the unit for the future and does not change the stored values.
CSV format
Download CSV is made in the browser from the series on screen.
- File name:
trend-YYYYMMDDTHHMM.csv, from the start of the window (UTC). - Encoding: UTF-8, values quoted as in RFC 4180.
- First column
time: ISO-8601 in UTC. - Then, for every tag, two columns:
<Device>/<Tag> (unit)and<Device>/<Tag> qualityState. - Each row is one bucket, so the values are bucket averages, not raw samples.
- An empty value means bad or missing data.
Example from the demo plant (tag names are illustrative; yours are the names you gave the tags):
time,line1-modbus/Filler_Speed (bottles/min),line1-modbus/Filler_Speed qualityState,line1-modbus/Compressor_Pressure (bar),line1-modbus/Compressor_Pressure qualityState
2026-12-02T08:00:00.000Z,118,good,7.4,good
2026-12-02T08:01:00.000Z,119,good,7.6,good
2026-12-02T08:02:00.000Z,,bad,7.9,uncertain
2026-12-02T08:03:00.000Z,120,good,8.1,good
When unit history is known for the tags, the file uses three columns per tag instead: <name>, <name> qualityState and <name> unit. The unit then sits on every row, so a unit change in the middle of the range stays visible.
A tag that may not leave the plant (an egress rule in Governance) is exported with the header <name> <WITHHELD> and empty values. A note under the chart says how many tags were withheld.
Raw history export
Download CSV exports the aggregated chart. To get every stored sample, use Export raw history. It is on Monitoring → Reports → Raw data and on Settings → Plant historian.
| Field | Meaning | Default and limits |
|---|---|---|
| Machine | The machine whose tags you want | |
| Tags | Multi-select, then Add selected | At most 200 tags |
| From / To | Days in the site timezone | At most 366 days |
| Format | CSV or Parquet | CSV |
| At most rows | Row limit | 1,000,000; maximum 5,000,000 |
| Export / Stop | Starts or cancels |
Rules:
- A file is never cut. If there are more rows than the limit, nothing is exported and you see "Nothing was exported. Choose a shorter time, fewer tags or more rows."
- At most 2 exports run at the same time. A third one is refused ("Other exports are running.").
- Every export is audited. It needs a signed-in person; an API key cannot start it.
- The file is named
mii-history-<UTC timestamp>.csvor.parquet. - Columns:
ts(UTC,YYYY-MM-DDTHH:MM:SS.mmmZ),path,tag_id,value,quality_state, andunitwhen the unit history is known. - Text that starts with
=,+,-or@gets a leading'so spreadsheets do not run it as a formula. - Tags that must not leave the plant are left out. The response headers
X-MI-Withheld,X-MI-TruncatedandX-MI-Completetell a script what happened.
ts,path,tag_id,value,quality_state,unit
2026-12-02T08:02:41.120Z,DEMOFOODS/IZMIR/UTILITIES/AIR/COMPRESSOR/Pressure,t-1042,7.9,uncertain,bar
2026-12-02T08:02:42.120Z,DEMOFOODS/IZMIR/UTILITIES/AIR/COMPRESSOR/Pressure,t-1042,8.1,good,bar
The tag_id values here are placeholders.
Limits and good practice
- Pick tags with a common unit first. A comparison of pressure and speed is clearer in two lanes than after you rescale it yourself.
- For long ranges, switch on hourly rollups in Historian so charts load faster.
- Zoom before you export if you only need a short span; the CSV contains only the visible window.
- Trends needs a historian. Without one the chart stays empty.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The tag list is empty | The selected runtime has no numeric tags, or you picked another runtime in the top bar | Pick the runtime that holds the device. See Troubleshooting |
| Chart is empty for a tag | No history in the window: the device was disconnected or the historian was off | Check Connectivity → Devices and Settings → Plant historian |
| Line has gaps | Bad readings or no data (see Quality rendering) | Check the device connection and the tag address |
| Line is dashed | Uncertain quality from the device | Check the data type and scaling of the tag |
| Only 8 tags can be chosen | Fixed limit | Make two comparisons, or build a dashboard |
| Export says nothing was exported | More rows than the limit | Shorten the span, pick fewer tags, or raise At most rows |