So I\'ve been looking at crosstab for pivoting but not sure if there is a more scalable way to do this... Right now I have a structure that looks like