March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello!
For a query I am currently using Odata with the relativepath function. I am trying to pass a date filter through the query but I'm having issues in Powerbi.
Essential I am replacing part of my query where="1=1", with where=" tijdstip+>+DATE+'2023-06-29'",
This works no problem in the actual normal query...
(both of these work)
https://XXX/server/rest/services/XXX/FeatureServer/0/query?where=tijdstip+>+DATE+'2023-06-29'&outFields=*&f=json&token=XXX
https://XXX/server/rest/services/XXX/FeatureServer/0/query?where=1=1&outFields=*&f=json&token=XXX
...but as soon as I put them in my actualy query with relativepath the new one doesn't work.
(old: works)
#"Added Custom - QUERY" = Table.AddColumn(#"Changed Type", "Custom.1", each Json.Document(Web.Contents("https://xxx/server",
[
RelativePath="rest/services/xxx/FeatureServer/0/query",
Query=[
where="1=1",
outFields="*",
resultOffset=[Column1],
token=access_token1,
f="json"
]
]
))),
(new: doesnt work)
#"Added Custom - QUERY" = Table.AddColumn(#"Changed Type", "Custom.1", each Json.Document(Web.Contents("https://xxx/server",
[
RelativePath="rest/services/xxx/FeatureServer/0/query",
Query=[
where="tijdstip+>+DATE+'2023-06-29'",
outFields="*",
resultOffset=[Column1],
token=access_token1,
f="json"
]
]
))),
Does anyone know what I'm doing wrong?
Cheers,
Erik
Solved! Go to Solution.
Found the issue.
I had to replace all the + with space.
#"Added Custom - QUERY" = Table.AddColumn(#"Changed Type", "Custom.1", each Json.Document(Web.Contents("https://xxx/server",
[
RelativePath="rest/services/xxx/FeatureServer/0/query",
Query=[
where="tijdstip > DATE '2023-06-29'",
outFields="*",
resultOffset=[Column1],
token=access_token1,
f="json"
]
]
))),
Found the issue.
I had to replace all the + with space.
#"Added Custom - QUERY" = Table.AddColumn(#"Changed Type", "Custom.1", each Json.Document(Web.Contents("https://xxx/server",
[
RelativePath="rest/services/xxx/FeatureServer/0/query",
Query=[
where="tijdstip > DATE '2023-06-29'",
outFields="*",
resultOffset=[Column1],
token=access_token1,
f="json"
]
]
))),
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |