Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powerbi URL中的Power BI增量页码_Powerbi - Fatal编程技术网

Powerbi URL中的Power BI增量页码

Powerbi URL中的Power BI增量页码,powerbi,Powerbi,在我的示例中,当前仅从第0页加载数据。我总共有5页 如何增加页码并加载所有数据 您需要使用函数进行迭代: let FnGetOnePage = (pageNo) => let Source = Web.Contents("replace with your url", [RelativePath="?page=" & Numbe

在我的示例中,当前仅从第0页加载数据。我总共有5页

如何增加页码并加载所有数据


您需要使用函数进行迭代:

    let 
          FnGetOnePage = (pageNo) =>
            let
              Source = Web.Contents("replace with your url", 
                                    [RelativePath="?page=" & Number.ToText(pageNo)]),
             JsonProductResponse = Json.Document(Source ,1252)
          in
             JsonProductResponse,

        GeneratedList =
          List.Generate(
           ()=>[i=1,res = FnGetOnePage(i)],
            each List.IsEmpty([res]) <> true, 
            each [i=[i]+1,res=FnGetOnePage(i)]
        )
    in
        GeneratedList 
let
FnGetOnePage=(页码)=>
让
Source=Web.Contents(“替换为您的url”,
[RelativePath=“?page=“&Number.ToText(页码)]),
JsonProductResponse=Json.Document(源代码,1252)
在里面
JsonProductResponse,
生成列表=
列表。生成(
()=>[i=1,res=FnGetOnePage(i)],
每个列表。IsEmpty([res])true,
每个[i=[i]+1,res=FnGetOnePage(i)]
)
在里面
生成列表

函数中的“1252”是什么?@Pointer它是编码值,您可以保持原样,甚至可以忽略它,因为它是Json.Document中的可选参数@PratikBhavsar Tnx获取答案,但在使用您的代码后,获取define pageNo?user_odoo对于这个愚蠢的错误感到抱歉,它应该看起来像Source=Web.Contents(“替换为您的url”),[RelativePath=“?page=“&Number.ToText(pageNo)],@user_odoo也将PowerBITest移动到相对路径[RelativePath]=“/PowerBITest?page=“&Number.ToText(页码)]