I have the following problem, I have a table with items and I need to create groups and name each item to its due group. I already distribute them by categories, which in the case I call 'families', however I need now to group them respectively into groups that are automatically generated that I can call a maximum value.
Thisisthecodethatreturnsmethetableabove,howeverIneededittobeseparatedthiswayhere: