最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

I am trying to pass a BigQuery stored procedure (has one input date parameter) to PowerBI. and also I want that parameter to bin

programmeradmin1浏览0评论

Structure of BigQuery stored procedure:

with cte
(
    select ....
)
select cols
from table1
join cte
where col = dateparam
union all
select cols
from table2
join cte
where col = dateparam**

Structure of PowerBI calling the stored procedure:

let
    ProjectId = "your_project",
    DatasetId = "your_dataset",
    SPName = "sp_example",
    InputDate = Date.ToText(DateParam, "yyyy-MM-dd"),
    SQLQuery = "CALL `" & ProjectId & "." & DatasetId & "." & SPName & "`('" & InputDate & "')",
    Source = GoogleBigQuery.Database(ProjectId),
    RunSP = Value.NativeQuery(Source, SQLQuery)
in
    RunSP

I am getting this error:

native queries aren't supported by this value

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论