Forum Discussion

Giada_Togliatti's avatar
Giada_Togliatti
Icon for Post Patron rankPost Patron
5 years ago
Solved

pivot and unpivot

Hi, I have this two data format:   How can I do to have this format in power query editor?     Thank you
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Giada_Togliatti ,

     

    For the first table, you need to copy a new table(Table (3)), then delete one row from the original table, delete another row from the new table, and then select all the columns in each table, use the UNPIVOT function, and then merge the two tables.

     

    For the second table, just select all the columns then use UNPIVOT function.

     

     

     

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.