Adding new field to group by