Forum Discussion
Convert 912 rows and 16 columns into 2 columns....with a twist
- Jul 29, 2020
You may open the file, Data->Query and Connections, on the right pane double click on query (or Edit from right click menu), query editor will be opened, here you will see the steps
Power Query works - name the range, query it, select first column, Unpivot other columns, remove Attribute column, return result back to Excel sheet.
- kcb410Jul 28, 2020Copper Contributor
Thanks for the reply.
I've tried using unpivot other but I've been unable to make it format the data the way I need it. For instance if there's 2 colours I need the model number repeated twice, if there's 7 colours I need the model number repeated 7 times. I know Power Query will achieve this, I just don't know how.
- SergeiBaklanJul 28, 2020Diamond Contributor
- kcb410Jul 29, 2020Copper Contributor
Hi Sergei,
Thanks for sending that file.
Excuse my ignorance on this topic, I've never used Power Query. I assume the first step is Unpivot other columns. What's the final step/query?