通过 Power Bi 中的 Web 服务进行动态查询(当前日期)

发布于 2025-01-14 06:06:19 字数 500 浏览 4 评论 0原文

在我的项目中,我们通过 Web 服务 REST 使用公司的数据。今天,我们不再通过字符串传递开始日期和结束日期参数来动态执行查询。

在此处输入图像描述

我的目标是动态更新结束日期。我已经创建了一个采用当前日期的查询,但我无法将其放入参数中而不在查询中生成错误。

在此处输入图像描述

这是当我将列值放入参数中时收到的错误消息:

在此处输入图像描述

我很确定我的语法错误。任何人都可以帮助我,我真的很感激。我想指出的是,API 调用的日期格式是 DD/MM/YYYY。

In my project we are consuming the company's data via Web Service REST. Today we don't do the query dynamically by passing the start date and end date parameters via string.

enter image description here

My goal is for the end date to update dynamically. I've already created a query that takes the current date but I can't put it in the parameter without generating an error in the query.

enter image description here

This is the error message I get when I put the column value in the parameter:

enter image description here

I'm pretty sure I'm getting the syntax wrong. Anyone who can help me, I really appreciate it. I would like to point out that the date format for the API call to work is DD/MM/YYYY.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

满身野味 2025-01-21 06:06:19

你可以尝试使用

PutYourOtherTableNameHere[Hoje_Coluna]{0}

代替吗

[Hoje_Coluna]

要查看这是否有效,请将其放在查询之前,然后单击该步骤并查看它返回的内容。

x = PutYourOtherTableNameHere[Hoje_Coluna]{0},

Can you try using

PutYourOtherTableNameHere[Hoje_Coluna]{0}

instead of

[Hoje_Coluna]

?

To see if that will work, put this in right before your query, then click on the step and see what it returns.

x = PutYourOtherTableNameHere[Hoje_Coluna]{0},
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文