Forum Discussion
Etre-Anup
6 years agoNew Member
Unpivot multiple columns
Hello Team,
I have following data
| Printer Name | Print Job Title | Print Job Owner | Print Date | Print Time | Status | Material 1 | Material 1 Usage | Material 2 | Material 2 Usage |
| ABCD1 | Part 1 | Anup | 7/3/2020 | 30:49:39 | Success | ABS | 161.659 | SM29 | 10.025 |
| ABCD1 | Part 2 | Anup | 7/2/2020 | 7:11:23 | Success | ABS | 19.98 | SM29 | 7.168 |
| ABCD1 | Part 3 | Anup | 6/26/2020 | 8:34:40 | Success | ABS | 13.577 | SM29 | 5.555 |
| ABCD1 | Part 4 | Anup | 6/24/2020 | 5:22:42 | Success | ABS | 11.331 | SM29 | 4.051 |
| ABCD1 | Part 5 | Anup | 6/24/2020 | 5:37:46 | Fail | ABS | 21.028 | SM29 | 2.615 |
and I have been trying to simplify this table in below form
| Printer Name | Print Job Title | Print Job Owner | Print Date | Print Time | Status | Material | Material Usage |
| ABCD1 | Part 1 | Anup | 7/3/2020 | 30:49:39 | Success | ABS | 161.659 |
| ABCD1 | Part 1 | Anup | 7/3/2020 | 30:49:39 | Success | SM29 | 10.025 |
can you help me unpivot this?
Thank you,
Anup