来自不同列的电源查询数据

发布于 2025-02-05 17:52:41 字数 1907 浏览 2 评论 0原文

我是Power Query的新手,我想进一步了解它。我面临以下问题。我的桌子看起来像这样(已经删除了空字段):

​Spalte 9“”和“ Spalte 10”持有我的投资组合份额(Komma分离)。

编辑:为了澄清,我希望得到这样的东西:

​Callebaut AGCH00090029620,63NullNull
Galenica AGCH03606744660,58NullNull
Givaudan SACH00106459321,24NullNull
HelloFresh SEDE000A161408527.705,261,85Null
Kering SAFR0000121485431.145,001,51Null
Standard Chartered PLCGB00040828474,610 117.699 ,50Null0,41
Unilever PLCGB00B10RZP7842,305 315.241,76Null1,11

What i'm trying to get is this:

Spalte2Spalte8
CH00124105171,04
CH00090029620,63
CH03606744660,58
CH00106459321,24
DE000A1614081,85
FR00001214851,51
GB00040828470,41
GB00B10RZP781,11

我可以在PQ中使用哪种方式将ISIN与其投资组合共享匹配?多谢! 托马斯

i am new to Power query and i would like to learn a bit more about it. I am facing the following problem. My table looks like this (empty fields already removed):

enter image description here

What i'm trying is to get a new table where "Spalte2" holds my list of ISINs and S^"Spalte 8" but also "Spalte 9" and "Spalte 10" hold my portfolio share (komma separated).

EDIT: For clarification I hope to get something like this:

enter image description here

EDIT: I try to get a table in here, hope it works:

Spalte1Spalte2Spalte8Spalte9Spalte10
Bâloise Holding AGCH00124105171,04NullNull
Barry Callebaut AGCH00090029620,63NullNull
Galenica AGCH03606744660,58NullNull
Givaudan SACH00106459321,24NullNull
HelloFresh SEDE000A161408527.705,261,85Null
Kering S.A.FR0000121485431.145,001,51Null
Standard Chartered PLCGB00040828474,610 117.699,50Null0,41
Unilever PLCGB00B10RZP7842,305 315.241,76Null1,11

What i'm trying to get is this:

Spalte2Spalte8
CH00124105171,04
CH00090029620,63
CH03606744660,58
CH00106459321,24
DE000A1614081,85
FR00001214851,51
GB00040828470,41
GB00B10RZP781,11

Which way can i use in PQ to match the ISIN with its portfolio share? Thanks a lot!
Thomas

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

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

发布评论

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

评论(1

天赋异禀 2025-02-12 17:52:41

我是正确理解您只想将每行右列的最右列的信息整合到一个列中,而无视它与第一列之间的任何其他信息?

如果是这样,那么这可能是一种可能的方法。

从一个名为Table1的示例表开始,在电源查询中:

我只是添加一个新列,然后使用如果然后语句选择最右的填充列的信息:

(在上面的M代码中,我检查每列既不是空的,也不是空白。)

我得到了此结果:

然后我选择Spalte2和自定义列,然后删除其他列以获取此信息:

Am I correct in understanding that you simply want to consolidate the information from the rightmost populated column of each row into one column, and disregard any other information between it and the first column?

If so, then this might be one possible approach.

Starting with a sample table called Table1 in power query:
enter image description here

I just add a new column and use if then statements to select the rightmost populated column's information:
enter image description here

(In the above M code, I check that each column is both not null and not blank, to be thorough.)

I get this result:
enter image description here

Then I select the Spalte2 and Custom columns and remove the other columns to get this:
enter image description here

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