如何将扩展的列倒入单行?
我有一个包含数据类型人员或组
的列的SharePoint列表,其中可能包含多个人。当此列表被导入Power BI时,将在Power BI查询编辑器中显示为[Table]
。
当我展开此列(使用上面突出显示的按钮)时,它会创建多个行(我不想要)。
我的目标是通过将扩展回到单行创建的所有重复行转换为在值之间的分界符,来保留表的行计。有没有人找到一种巩固这一点的方法?
Data example
Original Data
ID | ColumnHeader | OtherColumns |
---|---|---|
1 | [Table] | OtherData |
After expansion
ID | ColumnHeader | OtherColumns |
---|---|---|
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.
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
ID | ColumnHeader | OtherColumns |
---|---|---|
1 | [Table] | OtherData |
After expansion
ID | ColumnHeader | OtherColumns |
---|---|---|
1 | [email protected] | OtherData |
1 | [email protected] | OtherData |
Target output
ID | ColumnHeader | OtherColumns |
---|---|---|
1 | [email protected]# [email protected] | OtherData |
*The delimiter can be anything (not neccesarily a #)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您有这样的桌子。
表(绿色)包含这样构建的数据。
要实现您所追求的串联:
添加带有以下代码的自定义列。
Assume you have a table like this.
Table (in green) contains data structured like this.
To achieve the concatenation you're after as follows:
Add a custom column with the following code.