KPI ยท console.warn
the "{label}" tile's percentile needs `p`, a...
Printed by KPI, prefixed [lattice], since 1.112.0.
Warnings reference › kpi:percentile-p:*
- Identifier
kpi:percentile-p:*- Raised by
- KPI
- Since
- 1.112.0
What happened
A KPI tile with aggregation: 'percentile' has no p, or a p that is not a number from 0 to 1, so there is no quantile to read. The tile shows no value rather than guessing one.
The fix
Give the tile a p between 0 and 1: 0.5 is the median, 0.9 the 90th percentile.
The smallest fix
tiles: [{ id: 'p90', label: 'P90 sugar', aggregation: 'percentile', p: 0.9, field: 'sugar' }]
Reference
Covered in full at the API reference.