通过 Power Bi 中的 Web 服务进行动态查询(当前日期)
在我的项目中,我们通过 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.
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.
This is the error message I get when I put the column value in the parameter:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以尝试使用
代替吗
?
要查看这是否有效,请将其放在查询之前,然后单击该步骤并查看它返回的内容。
Can you try using
instead of
?
To see if that will work, put this in right before your query, then click on the step and see what it returns.