如何从 Power BI 中的 API 获取所有数据

时间:2021-04-08 01:31:24

标签: api powerbi powerquery offset m

我正在关注 this post 以通过 Power BI 将分页连接到 API(Marvel API 作为一项研究),并且我意识到即使为每个页面生成一个包含 API 页面数量的列表,请求相同的 20 条记录。

然后我发现 this other post 谈到了 "offset""limit" 参数,但我不明白操作和我应该如何使用它。

获取数据> Web> API 路径 enter image description here

M 语言生成 enter image description here

调用函数 enter image description here

1 个答案:

答案 0 :(得分:0)

我是这样解决的:我为 100 中的 100 的“偏移”参数创建了一个列表,并调用了在 IPA URL 的“页面”中传递此列的函数

= List.Generate(()=>0, each _<=TOTAL_REGISTROS, each _+100)

enter image description here