I need to separate the values from a group

Check this topic, very similar.