我有一个API JSON响应,它提供了一些公司数据。它包括一个公司It列表和一个作为列表存储的sic_codes记录(因为一个公司可以有多个sic代码)
目前,我正在将值展开为行,然后使用自定义列对它们进行分组,并将它们组合成"sic1,sic2,sic3“等格式。
是否有一种方法可以在不首先展开行的情况下创建这个连接列?
以下是数据的预览:

发布于 2022-05-17 15:46:57
怎么样
#"Transform" = Table.TransformColumns(#"PriorStepNameGoesHere",{{"sic_codes", each try Combiner.CombineTextByDelimiter(", ")(List.Transform( _ , each Text.From(_))) otherwise null }})或
#"Added Custom" = Table.AddColumn(#"PriorStepNameGoesHere, "expanded_SICs", each try Text.Combine(List.Transform([sic_codes], each Text.From(_)),", ") otherwise [sic_codes])https://stackoverflow.com/questions/72276766
复制相似问题