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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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 \"
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 5 | |
| 3 |