PQ - 根据ID将多行合并为一行,按逗号分隔
# 根据ID和评分将编号合并为一行,按逗号分隔
1,合并公式:
= Table.Group(更改的类型, {"DOCTORID","评分"}, {{"汇总", each _[ 问题编号], type list}})
2,点击扩展按钮,选择提取值>按逗号分隔
3,结果
参考M代码:
汇总 = Table.Group(更改的类型, {"DOCTORID","评分"}, {{"汇总", each _[ 问题编号], type list}}), 提取值 = Table.TransformColumns(汇总, {"汇总", each Text.Combine(List.Transform(_, Text.From), ","), type text}),
参考教程:
Power Query-实现将多行按照编号合并到一行_zlp_Prime的博客-CSDN博客_powerquery多行转一行