Hi,
The output of my query is like this -<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;} tr {mso-height-source:auto;} col {mso-width-source:auto;} br {mso-data-placement:same-cell;} td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .xl65 {text-align:center;} --> </style>
| Name_1 | Name_2 | Name_3 | Val_1 | Val_2 | Val_3 | Val_1_2 | Val_2_3 | Val_1_3 | Val_1_2_3 |
| 0 | 0 | Category_3 | 0 | 0 | 11 | 0 | 11 | 11 | 11 |
| 0 | Category_2 | 0 | 0 | 127 | 0 | 127 | 127 | 0 | 127 |
| 0 | 0 | Category_3 | 0 | 0 | 73 | 0 | 73 | 73 | 73 |
| Category_1 | 0 | 0 | 2 | 0 | 0 | 2 | 0 | 2 | 2 |
Please help in getting the output structures as below -
| val_1 | val_2 | val_3 | val_1_2 | val_1_3 | val_2_3 | val_1_2_3 | name_1 | name_2 | name_3 |
|---|---|---|---|---|---|---|---|---|---|
| 10 | 10 | 10 | 3 | 3 | 3 | 5 | Category 1 | Category 2 | Category 3 |