将三个表合并为一个表,EXCEL POWERQUERY

时间:2016-07-11 15:06:02

标签: mysql sql-server excel vba powerquery

或者使用SQL,无论需要什么。 我在每张桌子里面有三张(北,南,西),有DATE,REP,UNIT,NORTH(西南)。我有7/11/16,SMITH,FBI等行数据,单张表中有38.50美元,然后是表单West,7/11/16,SMITH,FBI,$ 5.00。如何结合或合并这类数据?我尝试过:

SELECT *from North$
Unon all
SELECT *from South$
Union all
Select *from West$

但是,我只能获得追加数据。这三个表有47个,我希望北方和西方的那些相同的行在新表中连接成一行!

我可以上传工作簿吗?怎么样?

1 个答案:

答案 0 :(得分:1)

I would use the Power Query Merge command to join the rows from North and West. You haven't indicated what columns to join on but I'm sure you'll figure it out. The Merge popup window is quite helpful.

You haven't said what your requirements are for South - possibly a 2nd Merge?

相关问题