简体   繁体   English

Excel Power Query-如何基于联接创建最终表

[英]Excel Power Query - How to create final table based on Joins

Can you please help me in creating a final table using Excel Power Query based on the logic mentioned in below screenshot: 您能否帮助我根据以下屏幕快照中提到的逻辑使用Excel Power Query创建最终表: 在此处输入图片说明

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. 步骤如下:1)我创建了一个唯一的国家/地区代码列表,其中有1列(“来源和目的地”)2)与Origin表左联接,然后从通用表中获得目标代码3)添加了一个自定义列以获取除以下以外的所有行原点=目的地。

In this way I got the Outbound column values. 这样,我得到了出站列值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM