Only store group information in row if data is grouped