In the excel sheet, I have multiple tables with a similar header. I need help in consolidating all the tables in a single one. My table structure is looking like as below.
Table 1:
project1 | 2018 | 2019 | 2020 |
---|---|---|---|
plan | 100 | 200 | 300 |
forecast | 20 | 40 | 30 |
Table 2:
project2 | 2018 | 2019 | 2020 |
---|---|---|---|
plan | 400 | 500 | 600 |
forecast | 40 | 50 | 60 |
output table:
projects | Actions | 2018 | 2019 | 2020 |
---|---|---|---|---|
project1 | plan | 100 | 200 | 300 |
project1 | forecast | 10 | 20 | 30 |
project2 | plan | 400 | 500 | 600 |
project2 | forecast | 40 | 50 | 60 |
I need to automate this either using python or power query so that I can use it in PowerBI for visualization
Kindly assist me with the correct approach and necessary steps.
Table real structure:
input - https://imgur.com/OuUpimS
output- https://imgur.com/esb30xv