The grid (core) ยท console.warn
compareGroups: the "by" column has fewer than two distinct values to group by.
Printed by The grid (core), prefixed [lattice], since 1.27.0.
Warnings reference › compareGroups:groups
- Identifier
compareGroups:groups- Raised by
- The grid (core)
- Since
- 1.27.0
What happened
With no explicit groups, the two most frequent values of the by column are compared - and it has fewer than two distinct values in the current row set. There is nothing to compare, so the call returns null.
The fix
Check the filters: the two groups have to be present in the rows the grid is currently showing. Name the two values explicitly in groups if the automatic choice is not what you want.
Reference
Covered in full at the API reference.