Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Merge many columns in one - Power Query

Hello everyone. Can someone help me with this transformation?

 

 

Fields "1" need to be my columns, and all "2" need to be the rows.

 

Ex:

JANEIRO PAGAMENTO    |       CODIGO DA VENDA       |           NOME DO CLIENTE

18/01/2022                                          116                              MARCOS ESPINDOLA    

18/01/2022                                          117                          JUAREZ REZENDE COELHO

18/01/2022                                          118                               MECANICA KLEBER

18/01/2022                                          119                         DOUGLAS HENRIQUE MARQUES

 

Any idea how do to that?

1 Reply

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    import you data without headers, ie the column names will be Column1, Column2,.....

    then add the code in your new step

    =Table.PromoteHeaders(Table.Transpose(PreviousStepName))