accounting : do the stat with the select parameter otherwise it counts distinct which give bad results