Forum Discussion
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
- TomMartens
Super User
Hey,
Import the sheets using Power Query, this will lead to two queries and then:
- Reorder the columns in one of the queries
- Use the Append operation in the Combine ribbon of the Home Menu:
https://docs.microsoft.com/en-us/power-bi/desktop-shape-and-combine-data
Regards,
Tom
- nmhung49
Helper II
I can not Reorder the columns in one of the queries
Can you help me? with example
P/s: I am not use create Table to do It
- TomMartens
Super 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