Uncross cross-tab

See the answer here: Labeling columns with separated top values