Excel Power查询 - 来自源文件的新数据并非在当前表中创建新行

发布于 2025-02-06 11:50:10 字数 978 浏览 1 评论 0原文

我有一个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?

sdsd

enter image description here

enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小情绪 2025-02-13 11:50:10

这取决于您添加的数据的组织方式。

可能最简单的方法是将此数据添加为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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文