如何将扩展的列倒入单行?

发布于 2025-02-12 03:20:12 字数 1609 浏览 0 评论 0原文

我有一个包含数据类型人员或组的列的SharePoint列表,其中可能包含多个人。当此列表被导入Power BI时,将在Power BI查询编辑器中显示为[Table]

当我展开此列(使用上面突出显示的按钮)时,它会创建多个行(我不想要)。

我的目标是通过将扩展回到单行创建的所有重复行转换为在值之间的分界符,来保留表的行计。有没有人找到一种巩固这一点的方法?

Data example

Original Data

IDColumnHeaderOtherColumns
1[Table]OtherData

After expansion

IDColumnHeaderOtherColumns
1[email 受保护]Data
1其他

;

b1f7d0dad4f4f4dcd0ddd83f1d83f1d4db1d4dcd4dcdcdcdcdcd0d8d8dd8dd9fd9fd2dd2d2d2ddc圆柱列其他
columns 1[email  nbsp;]

procepted

I have a SharePoint list containing a column with data type People or Group which can contain multiple people. When this list is imported into Power BI it appears as [Table] in the Power BI Query Editor.

enter image description here

When I expand this column (using highlighted button above), it creates multiple rows (which I don't want).

My goal is to preserve the row count of my table by converting all duplicate rows created by the expansion back to single rows with a delimiter between values. Has anyone found a way to consolidate this?

Data example

Original Data

IDColumnHeaderOtherColumns
1[Table]OtherData

After expansion

IDColumnHeaderOtherColumns
1[email protected]OtherData
1[email protected]OtherData

Target output

IDColumnHeaderOtherColumns
1[email protected]# [email protected]OtherData

*The delimiter can be anything (not neccesarily a #)

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

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

发布评论

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

评论(1

靖瑶 2025-02-19 03:20:12

假设您有这样的桌子。

表(绿色)包含这样构建的数据。

要实现您所追求的串联:

https://i.sstatic.net/3yozi.png“ alt =”在此处输入图像说明”>

添加带有以下代码的自定义列。

Text.Combine([ColumnHeader][Column Header A],"# ")

Assume you have a table like this.

enter image description here

Table (in green) contains data structured like this.

enter image description here

To achieve the concatenation you're after as follows:

enter image description here

Add a custom column with the following code.

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