split stats for categorical attribute