Forum Discussion

turboedbird's avatar
turboedbird
Copper Contributor
Apr 13, 2021
Solved

Help moving data and matching to correct columns and rows.

I am trying to convert product data so I can upload it into a website in its specific format. To do so I need to change the layout of the current file so I can move the data. So I need to put the dat...
  • Riny_van_Eekelen's avatar
    Apr 14, 2021

    turboedbird Are you familiar with Power Query (PQ)?

     

    It would take only a few steps (connect to the csv file, keep three columns, promote headers, do some sorting, data typing and cleaning-up and then pivot the attribute column). Now, if you are not familiar with PQ, this will mean absolutely nothing to you.

     

    I've done all that but noticed that, for instance, part number 300104ERL has one attribute called "Compatible Hose" with 5 different values on 5 different rows. The pivot step mentioned above couldn't handle this, so an extra step had done to group such items. But then the five different hose types are merged into one cell. Not sure if that is a problem for you or not.

     

    The end result is a table with 4203 rows and 298 columns. File attached, though you will not be able to connect to the source file as it was linked to a location on my computer. Now, if you do know PQ, you'll be able to fix that yourself.

Resources