Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
using this url in curl works fine . how to get the same in power bi query . it says bad request
https://xxx.com:443/e/xxx/api/v2/metrics/query?metricSelector=
(builtin:host.mem.usage:filter(and(in(\"dt.entity.host\",entitySelector(\"type(dt.entity.host),tag(app1)\")))):splitBy(\"dt.entity.host\"):avg:sort(value(max,descending))):names:
fold(avg)&from=1731543757451&to=1731550957451&resolution=30m" -H "accept: text/csv, application/json; q=0.1"
-H "Authorization: Api-Token xxx
in power query following is working without double quotes
https://xxx.com:443/e/xxx/api/v2/metrics/query?metricSelector=
(builtin:host.mem.usage:splitBy(dt.entity.host):avg:sort(value(max,descending))):names:
fold(avg)&from=1731543757451&to=1731550957451&resolution=30m" -H "accept: text/csv, application/json; q=0.1"
-H "Authorization: Api-Token xxx
but using filter(and(in(\"dt.entity.host\",entitySelector(\"type(dt.entity.host),tag(app1)\")))): throws bad request
Solved! Go to Solution.
Please follow the documentation. Use the Query parameter. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1
thanks i got it
Please follow the documentation. Use the Query parameter. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1
use "" replace \"