Melt Function in Reshape 2

Just enough data to reproduce it. Maybe slightly more than what you had in your original post, but in a format that means that it can be worked on (as described in the link).

This makes it easier for others to help you with your answer and more likely that you will get an answer.