Chris Harshman (10/21/2016)
Talvin Singh (10/21/2016)
the first line are categories, which were created with case statements egcount(case when [order line] = 1 then 1 end) [1]
Maybe I'm missing something, I'd have to see the entire query, but if you're currently creating columns using this method and want them to be rows, don't try to unpivot the pivoted data, wouldn't you just need a table that groups the lines together, something like:
+1