通过Web URL将数据从JSON文件导入Excel

问题描述 投票:-1回答:1

我正在使用From Web标签功率查询下的Data通过网址从JSON文件将数据导入Excel。

大多数数据都是正确的,但有些数据来自[List]作为单元格值

所有[List]数据的形式为aaa|bbb|ccc,即管道分隔

enter image description here

应该是这样的

enter image description here

是否可以正确显示数据?

谢谢

json excel powerquery
1个回答
1
投票

是的,转换列。如果值是列表,则将值与“|”组合作为分隔符,例如:

let
    Source = #table({"Sector"},{{"Non-profit"},{{"Business & industry","Govenrnment"}}}),
    TextCombined = Table.TransformColumns(Source, {{"Sector", each if _ is list then Text.Combine(_,"|") else _, type text}})
in
    TextCombined 
© www.soinside.com 2019 - 2024. All rights reserved.