sales/stats groupBy issue