Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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 \"
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 4 | |
| 3 | |
| 3 |