I am using power query to transform a data set. I have two sets of separate columns which need to be appended to one another, while copying over the data from other corresponding columns. This is what I currently have:
This is what I want my data to look like:
I am new to power query, but have not had any luck with searching or experimentation. Thank you.
MrExcel Help.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Employee ID | Employee Name | Gender | Month | Attribute1 | Value1 | Attribute2 | Value2 | ||
2 | 1245 | Julio | M | 01-Jan | Benefits | $ 235.00 | Salary Increase | $ - | ||
3 | 3475 | Julio | M | 01-Jan | Overtime | $ 150.00 | Benefits Weighted | $ 340.00 | ||
4 | 3425 | Marge | F | 01-Feb | Benefits | $ 225.00 | Salary Increase | $ - | ||
5 | 2342 | Marge | F | 01-Feb | Overtime | $ 170.00 | Benefits Weighted | $ 400.00 | ||
6 | 1242 | Gustav | M | 01-Mar | Benefits | $ 300.00 | Salary Increase | $ - | ||
7 | 1515 | Gustav | M | 01-Mar | Overtime | $ 190.00 | Benefits Weighted | $ 150.00 | ||
8 | 1465 | Marsha | F | 01-Apr | Benefits | $ 340.00 | Salary Increase | $ 400.00 | ||
9 | 1277 | Marsha | F | 01-Apr | Overtime | $ 250.00 | Benefits Weighted | $ 230.00 | ||
Have |
This is what I want my data to look like:
MrExcel Help.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Employee ID | Employee Name | Gender | Month | Attribute1 | Value1 | ||
2 | 1245 | Julio | M | 01-Jan | Benefits | $ 235.00 | ||
3 | 3475 | Julio | M | 01-Jan | Overtime | $ 150.00 | ||
4 | 3425 | Marge | F | 01-Feb | Benefits | $ 225.00 | ||
5 | 2342 | Marge | F | 01-Feb | Overtime | $ 170.00 | ||
6 | 1242 | Gustav | M | 01-Mar | Benefits | $ 300.00 | ||
7 | 1515 | Gustav | M | 01-Mar | Overtime | $ 190.00 | ||
8 | 1465 | Marsha | F | 01-Apr | Benefits | $ 340.00 | ||
9 | 1277 | Marsha | F | 01-Apr | Overtime | $ 250.00 | ||
10 | 1245 | Julio | M | 01-Jan | Salary Increase | $ - | ||
11 | 3475 | Julio | M | 01-Jan | Benefits Weighted | $ 340.00 | ||
12 | 3425 | Marge | F | 01-Feb | Salary Increase | $ - | ||
13 | 2342 | Marge | F | 01-Feb | Benefits Weighted | $ 400.00 | ||
14 | 1242 | Gustav | M | 01-Mar | Salary Increase | $ - | ||
15 | 1515 | Gustav | M | 01-Mar | Benefits Weighted | $ 150.00 | ||
16 | 1465 | Marsha | F | 01-Apr | Salary Increase | $ 400.00 | ||
17 | 1277 | Marsha | F | 01-Apr | Benefits Weighted | $ 230.00 | ||
Want |
I am new to power query, but have not had any luck with searching or experimentation. Thank you.