You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何从Navigator窗格获取潜在查询列表及Power Query实现方案

虽然实现方式不算特别精巧,但以下为获取潜在查询的解决方案:

qString1 =  'let Source = Pdf.Tables(File.Contents('+'"'+_app.session.oRep.outputfilename+'"'+'), [Implementation='+'"'+"1.3"+'"'+']), ;
            TransposeSource = Table.Transpose(Source), ;
            SourceHeaderPromoted = Table.PromoteHeaders(TransposeSource, [PromoteAllScalars=true]), ;
            initquerylist = Table.ColumnNames(SourceHeaderPromoted), ;

代码逻辑说明

  • 上述代码为拼接Power Query M查询语句的逻辑,拼接完成后可直接在Power Query环境运行
  • 首先调用Pdf.Tables读取指定路径的PDF文件,抽取文件内的所有表格数据
  • 对抽取到的原始表格执行转置操作
  • 提升转置后表格的首行作为表头字段
  • 提取最终表格的所有表头字段,得到潜在查询列表

内容的提问来源于stack exchange,提问作者SJE

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.09 10:15:04