Forum Discussion
jimmybi
8 years agoFrequent Visitor
Unpivot and append dynamically multiple columns
Hi guys, I need a bit of Power Query magic. I have data from Excel files that has data for around many devices with time stamp. It looks something like this: Timestamp DeviceName EmptyColu...
v-cherch-msft
8 years agoMicrosoft Employee
Hi jimmybi
You may try to do it in Advanced Editor. Here are some references for you.
https://www.oraylis.de/blog/power-query-how-to-unpivot-a-dynamic-number-of-columns
https://wessexbi.wordpress.com/2014/02/27/unpivot-nested-headings-with-power-query/
Regards,
Cherie
- jimmybi7 years agoFrequent Visitor
Hi Cherie,
I saw those links and they are useful. That is where I got the List.Alternate idea from. However since I am using a folder as a source it gives me the folder column names. I tried to use them in the Advanced editor for the sample file and this is what I get:
Edit Queries Snapshot
And this is my M code:
So my problem is where to get the list from at the moment. Any ideas?