Using Get and Transform found on the Data Tab of your Excel file, you can get the data into the format you require by loading the original table to the PQ editor and unpivoting the columns. Here is the Mcode to do that. When new data is added to the original table. Click on the Refresh all Icon on the Data tab. Go to the output sheet and the table is updated.
Review PQ
In the attached file
Click on any cell in the new table
On the Data Tab, click on Queries & Connections
In the right window, double click to open Query
Review PQ steps
M-code basics:
- "let" is the start of a query
- "in" is the closing of a query
- each transformation step sits in between those 2 lines
- each step line is ended by a comma, except the last one
- "Source" is always the first step (Source Data)
- After "in" you have the last step referenced
Bookmarks