Excel Power查询 - 来自源文件的新数据并非在当前表中创建新行
我有一个Source Excel工作表[Image 1]。这将随着时间的流逝而变化,新数据不会附加在源文件中,而是在工作表[Image 3]中插入。
在另一个工作表中,我使用电源查询将来自源的数据加载到新表中。这用于添加一些其他数据作为新列[Image 2]。
如果我刷新工作表,并且将其他数据插入了源。xlsx。xlsx下面的所有数据都会向下移动,则除了新的colums中的数据外,都会向下移动。因此,其他数据不在正确的行中[image 4]
是否可以将新行附加到底部或为源文件中的新数据创建新行?
I have a source Excel worksheet [image 1]. This will change over time and the new data is not appended in the source file but inserted somewhere in the worksheet [image 3].
In another worksheet I am using power query to load the data from source.xlsx into a new table. This is used to add some additional data as new columns [image 2].
If I refresh the worksheet and additional data was inserted in the source.xlsx all data below the new entry is shifted down except the data in the new colums. Therfore the additional data is not in the correct row anymor [image 4]
Is there a way to append new rows to the bottom or create a new row for new data in the source file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于您添加的数据的组织方式。
可能最简单的方法是将此数据添加为Xlookup。这样,如果您使用列作为匹配标准,则无论A列A中的值序列/顺序如何,它将始终是正确的,并且
在PowerQuery中,您可以与Merge/Join相似。
在这两种情况下,您都需要在第二个表中提供附加数据的链接/参考,以便可以与之匹配。
如果您只想确保在底部有新条目,则添加一个ID列,数量增加并对其进行排序,应该可以解决问题。
It depends how the data you adding is organized.
Probably the easiest way is to add this data as xlookup. This way if you use column A as match criteria it will be always correct and matching regardless the sequence/order of values in column A.
In PowerQuery you can do similar with MERGE/JOIN.
In both cases you need a link/reference in the 2nd table where your additional data is, in order to have something to match with.
If you just want to make sure to have new entries at the bottom, adding an ID column with increasing number and sorting against it should do the trick.