如何在REST API的power bi查询语句中使用当前日期时间作为参数?我指定了两个参数“DateStart”和“DateEnd”,我希望将其包含在我的数据源的SQL语句中,我想将DateEnd作为当前系统日期时间和DateStart添加为日期时间的15分钟 .

我的疑问是

let
   body = Text.ToBinary("{
      ""Type"": ""Feedbacks"",
      ""FromDate"": ""01-01-2015 23:00:00.000"",
      ""ToDate"": ""20-09-2017 23:00:00.000"",
      ""SearchField"": ""test"",
      ""SearchFieldValue"": ""*""
}"),
   actualUrl = "http:/xx.xx.xx.xx:xx/service/GetSomething",
   options = [
      Headers =[#"Content-type"="application/json"],
      Content=body
   ],
   result = Web.Contents(actualUrl, options),
    #"Imported JSON" = Json.Document(result,65001)
in
    #"Imported JSON"

在这里,我想将结束日期添加为当前日期时间和开始日期当前为15分钟

提前致谢 .