Forum Discussion

MEW_1009's avatar
MEW_1009
Copper Contributor
Apr 27, 2020
Solved

changing format of data in a worksheet from horizontal to vertical

Can anyone tell me if there is a way to automate changing the format of the planning sheet I have attached?  This is just a test so you can see what I need to do.  I currently have 730 Part Numbers t...
  • DhaniCole's avatar
    Apr 28, 2020

    MEW_1009 

    You should use the "unpivot" function in Power Query.

    1. Turn your data into a table (select it and hit CTRL T).

    2. Load to PQ.  With your table selected, under the Data tab, select "from table/range"-this will load the table to PQ.

    3. Right click the RR Planning Key column and choose "unpivot other columns".

    4. Close and load to a table.

    Done-see attached.

     

    To look at the steps I did, launch the PQ Editor (select Get Data, then launch PQ editor).

Resources