Excel Power Query-如何基于联接创建最终表 [英] Excel Power Query - How to create final table based on Joins
本文介绍了Excel Power Query-如何基于联接创建最终表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
能否请您帮我根据以下屏幕快照中提到的逻辑使用Excel Power Query创建最终表:
Can you please help me in creating a final table using Excel Power Query based on the logic mentioned in below screenshot:
推荐答案
我自己解决了它。步骤如下:
1)我创建了一个唯一的国家/地区代码列表,其中有1列(来源和目的地)
2)与Origin表左联接,然后从公用表$ b $中获得目标代码b 3)添加了一个自定义列,以获取除origin = Destination之外的所有行。
I resolved it by myself. Following are the steps: 1) I created a unique country code list with 1 column (Origin & Destination) 2) Left join with Origin table and then got the destination code from common table 3) added a custom column to get all rows except where origin = Destination.
通过这种方式,我得到了出站列的值。
In this way I got the Outbound column values.
这篇关于Excel Power Query-如何基于联接创建最终表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文