The grid (core) ยท console.warn
statistics.compare needs a "measure" and a "...
Printed by The grid (core), prefixed [lattice], since 1.106.0.
Warnings reference › compare:spec
- Identifier
compare:spec- Raised by
- The grid (core)
- Since
- 1.106.0
What happened
statistics.compare tests one measure across groups of rows, and both the measure (what is tested) and the by column (what splits the rows) are required. Without either there is nothing to compare, so the call returns null.
The fix
Pass the measure column in measure and the grouping column in by.
Reference
Covered in full at the API reference.