raskolnikov
New Member
- Joined
- Dec 10, 2013
- Messages
- 17
I have a CSV resembling the following from our payroll software
As you can see what should be Headers are in columns to the left of their values. I would like to produce a table that looks like this:
I've tried pivoting, unpivoting, grouping... even ChatGPT couldn't crack it Any help would be appreciated.
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 1 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 2 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 3 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 4 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 5 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 6 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 7 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 8 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 9 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 10 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 11 |
Gross Wages | 650 | Employers NI | 100 | Employers Pension | 30 | Week Number | 12 |
As you can see what should be Headers are in columns to the left of their values. I would like to produce a table that looks like this:
Gross Wages | Employers NI | Employers Pension | Week Number |
650 | 100 | 30 | 1 |
650 | 100 | 30 | 2 |
650 | 100 | 30 | 3 |
650 | 100 | 30 | 4 |
650 | 100 | 30 | 5 |
650 | 100 | 30 | 6 |
650 | 100 | 30 | 7 |
650 | 100 | 30 | 8 |
650 | 100 | 30 | 9 |
650 | 100 | 30 | 10 |
650 | 100 | 30 | 11 |
650 | 100 | 30 | 12 |
I've tried pivoting, unpivoting, grouping... even ChatGPT couldn't crack it Any help would be appreciated.