JGordon11
Well-known Member
- Joined
- Jan 18, 2021
- Messages
- 847
- Office Version
- 365
- Platform
- Windows
How would one transform the green table on the left into the blue table on the right using power query?
Book1 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | ID | Name | Year | Purchases | Vehicles | ID | Name | Year | Cars | Motorcycles | Total | |||
2 | 123 | A | 2020 | 13065 | Cars | 123 | A | 2020 | 13065 | 35997 | 49062 | |||
3 | 456 | B | 2020 | 54220 | Cars | 456 | B | 2020 | 54220 | 54220 | ||||
4 | 789 | C | 2020 | 25227 | Cars | 789 | C | 2020 | 25227 | 62602 | 87829 | |||
5 | 246 | D | 2020 | 73224 | Cars | 246 | D | 2020 | 73224 | 73224 | ||||
6 | 357 | E | 2020 | 73505 | Cars | 357 | E | 2020 | 73505 | 105201 | 178706 | |||
7 | 468 | F | 2020 | 110148 | Cars | 468 | F | 2020 | 110148 | 24807 | 134955 | |||
8 | 123 | A | 2020 | 35997 | Motorcycles | 999 | G | 2020 | 16750 | 16750 | ||||
9 | 999 | G | 2020 | 16750 | Motorcycles | 888 | H | 2020 | 69792 | 69792 | ||||
10 | 789 | C | 2020 | 62602 | Motorcycles | Subtotal | 2020 | 349389 | 315149 | 664538 | ||||
11 | 888 | H | 2020 | 69792 | Motorcycles | 123 | A | 2021 | 52150 | 52150 | ||||
12 | 357 | E | 2020 | 105201 | Motorcycles | 999 | G | 2021 | 23500 | 23500 | ||||
13 | 468 | F | 2020 | 24807 | Motorcycles | Subtotal | 2021 | 52150 | 23500 | 75650 | ||||
14 | 123 | A | 2021 | 52150 | Cars | Total | 401539 | 338649 | 740188 | |||||
15 | 999 | G | 2021 | 23500 | Motorcycles | |||||||||
Append1 |