Why do I get this error when I try to group measures?

Can you supply us with some sample data. It is difficult to see what is happening without it.