KPI ยท console.warn
the "{label}" tile sets both `compute` and a...
Printed by KPI, prefixed [lattice], since 1.111.0.
Warnings reference › kpi:compute-conflict:*
- Identifier
kpi:compute-conflict:*- Raised by
- KPI
- Since
- 1.111.0
What happened
A tile named a built-in aggregation and a compute function. Only one can produce the value: the named aggregation does, so compute never runs. A tile with compute and no aggregation is custom and uses it.
The fix
Remove aggregation (or set it to 'custom') to use compute, or remove compute to keep the aggregation.
The smallest fix
tiles: [{ id: 'open', label: 'Open', compute: (rows) => rows.filter((r) => r.open).length }]
Reference
Covered in full at the API reference.