With topN in each group