KPI ยท console.warn
"{aggregation}" is not a KPI aggregation; expected one of {list}. Falling back to count.
Printed by KPI, prefixed [lattice], since 1.35.0.
Warnings reference › kpi:agg:*
- Identifier
kpi:agg:*- Raised by
- KPI
- Since
- 1.35.0
What happened
A tile named an aggregation the panel does not implement. Rather than refusing the tile, the panel falls back to count, so the tile still renders - with the number of rows, not the number you asked for. The key carries the unknown name, so one typo produces one line however many tiles share it.
The fix
Use one of the aggregations listed in the message, or pass a function (or aggregation: 'custom' with one) to compute the value yourself.
The smallest fix
tiles: [{ id: 'revenue', label: 'Revenue', aggregation: 'sum', field: 'amount' }]
Reference
Covered in full at the API reference.