Lattice Grid

The grid (core) ยท console.warn

compareGroups: the category '{value}' is not...

Printed by The grid (core), prefixed [lattice], since 1.125.0.

Warnings reference › compareGroups:category

Identifier
compareGroups:category
Raised by
The grid (core)
Since
1.125.0

What happened

compareGroups was given a category to count, and that value never appears in the measured column over the compared rows. Counting it would report a rate of zero for a value the column never held, so the call returned null rather than answer with a number built from nothing.

The fix

Pass a value the measured column actually holds, or leave category off to let the grid count the affirmative of a clear affirmative pair (true/false, yes/no, 1/0).

The smallest fix

grid.statistics.compareGroups('converted', { by: 'segment', category: 'yes' });

Reference

Covered in full at the API reference.