在API中使用唯一项键展开行
我有以下问题: 我在API REST中有一个订单列表:在API中使用唯一项键展开行,api,rest,powerbi,powerquery,Api,Rest,Powerbi,Powerquery,我有以下问题: 我在API REST中有一个订单列表: [ {"order_id":1505277, "products": {"856805359": {"item_id":"856805359", "product_id":6, "price":5}, "2662034394":
[
{"order_id":1505277,
"products":
{"856805359":
{"item_id":"856805359",
"product_id":6,
"price":5},
"2662034394":
{"item_id":"2662034394",
"product_id":2,
"price":12}
}
},
{"order_id":1505278,
"products":
{"856805359":
{"item_id":"856815359",
"product_id":4,
"price":3},
"2662034394":
{"item_id":"2662134394",
"product_id":5,
"price":5}
}
}]
项目键“812147904”每次都不同,这取决于顺序,因此我无法轻松展开行来创建表。我得到了多个列,而不是一个
我的目标是在Power Query/Power BI中创建一个订单(任意)表,其中我有订单id、项目id、产品id和价格
您可以在以下位置使用PowerBI从Web获取示例数据:
你能帮我吗
多谢各位