calculateGroupInfo

Calculates group information for all items.