KPI · console.warn
the "{label}" tile's filter read `{field}`, which is a column on the bound grid but is not projected - add it to `fields`: createKPI({ grid, fields: ['{field}'], … }).
Printed by KPI, prefixed [lattice], since 1.54.0.
Warnings reference › kpi:unprojected:*:*
- Identifier
kpi:unprojected:*:*- Raised by
- KPI
- Since
- 1.54.0
What happened
A tile read a column that the bound grid really has, but that the panel does not project onto its own rows. A grid-bound panel projects only the fields its tiles declare, so reading anything else costs a lookup per row; the value was fetched anyway (so the number is right) and the omission is reported once per tile and field, never per row.
The fix
Declare the column in fields so it is projected once per row rather than read per access.
The smallest fix
createKPI(el, { grid, fields: ['region'], tiles });
Reference
Covered in full at the API reference.