add fact group by