KPI ยท console.warn
config.fields must be an array of column names; ignoring it.
Printed by KPI, prefixed [lattice], since 1.54.0.
Warnings reference › kpi:fields:type
- Identifier
kpi:fields:type- Raised by
- KPI
- Since
- 1.54.0
What happened
fields was present but was neither a string nor an array, so it was ignored entirely. fields names the extra grid columns a bound panel projects onto its rows; with it ignored, a tile filter that reads one of those columns sees undefined - which is how a panel ends up showing a confident zero.
The fix
Pass an array of column ids (a single id as a plain string is also accepted).
The smallest fix
createKPI(el, { grid, fields: ['region', 'status'], tiles });
Reference
Covered in full at the API reference.