If you are good at flipping around tables......got a q for you.
I have a table that looks like this:
| SICGP | BUS1 | EMP1 | REV1 | BUS2 | EMP2 | REV2 | BUS3 | EMP3 | REV3 |
| 100 | 0.865 | 0.008 | 0.518 | 0.390 | 0.003 | 0.901 | 0.101 | 0.528 | 0.705 |
| 200 | 0.353 | 0.971 | 0.187 | 0.562 | 0.675 | 0.882 | 0.305 | 0.642 | 0.966 |
| 300 | 0.637 | 0.841 | 0.986 | 0.712 | 0.385 | 0.810 | 0.056 | 0.770 | 0.329 |
| 400 | 0.708 | 0.053 | 0.773 | 0.658 | 0.339 | 0.059 | 0.999 | 0.463 | 0.998 |
| 500 | 0.662 | 0.124 | 0.077 | 0.164 | 0.292 | 0.494 | 0.590 | 0.616 | 0.762 |
The numbers after BUS,EMP,REV represent a "size"
I want to rearrange this to look like this:
| SICGP | SIZE | BUS | EMP | REV |
| 100 | 1 | 0.865 | 0.008 | 0.518 |
| 100 | 2 | 0.390 | 0.003 | 0.901 |
| 100 | 3 | 0.101 | 0.528 | 0.705 |
| 200 | 1 | 0.353 | 0.971 | 0.187 |
| 200 | 2 | 0.187 | 0.562 | 0.675 |
| 200 | 3 | 0.305 | 0.642 | 0.966 |
| 300 | 1 | 0.637 | 0.841 | 0.986 |
| 300 | 2 | 0.986 | 0.712 | 0.385 |
| 300 | 3 | 0.056 | 0.770 | 0.329 |
| 400 | 1 | 0.708 | 0.053 | 0.773 |
| 400 | 2 | 0.773 | 0.658 | 0.339 |
| 400 | 3 | 0.999 | 0.463 | 0.998 |
| 500 | 1 | 0.662 | 0.124 | 0.077 |
| 500 | 2 | 0.077 | 0.164 | 0.292 |
| 500 | 3 | 0.590 | 0.616 | 0.762 |
So basically - I am grouping the data by SICGP, but then want to stack the BUS, EMP, and REV info on top of each other per SICGP.
Got any ideas?
Thanks
Corey