Forum Discussion

nmhung49's avatar
nmhung49
Icon for Helper II rankHelper II
7 years ago

Combine Data with Different Columns on Multiple Sheets into a Single Sheet

I have 2 sheets with data

Sheet 1

Product Group 1     Customer     Produc Group 2    Amount

A                               Hiti              Arg                       10

B                               Van             Bra                         20

Sheet 2

Product Group 2    Produc Group 1    Customer    Amount

Vie                               C                      Chien                 30

Tha                              D                       Tu                      40

 

Now I want combine 2 sheet to 1 sheet in Power query or Power Bi, How?

Product Group 1     Product Group 2     Customer    Amount

A                               Arg                       Hiti                       10

B                               Bra                        Van                      20

C                               Vie                        Chien                   30

D                               Tha                       Tu                        40

 

Thanks for your help!!

6 Replies

    • nmhung49's avatar
      nmhung49
      Icon for Helper II rankHelper II

      TomMartens 

      I can not Reorder the columns in one of the queries

      Can you help me? with example

       

      Example.xlsx

       

      P/s: I am not use create Table to do It

       

       

       

      • TomMartens's avatar
        TomMartens
        Icon for Super User rankSuper User

        Hey,

         

        I assume you already imported both sheets into Power BI Desktop Power Query.

        From Power BI desktop open Power Query (select Edit Queries from the Home menu)

         

        Select one query, mark the query you want to move to another place, drag the column using the mouse (you have to do the on the column name):

         

         

        As the manual reordering is "recorded" as a transformation step, it will work even if you refresh the data.

         

        Regards,

        Tom