Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
vijaykaali811
Helper I
Helper I

double quotes in weburl throws error in power bi

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 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

3 REPLIES 3
vijaykaali811
Helper I
Helper I

thanks i got it 

 

lbendlin
Super User
Super User

Please follow the documentation. Use the Query parameter. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1

ZhangKun
Super User
Super User

use "" replace \"

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors