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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jerryfalcobi
New Member

issue with backslash in query

Hi all, If i use relative path in my power query i have some trouble with a backslash. In this case i have a web API like https://thewebsite.com:8800/data? when i use as source https://thewebsite.com/ and as RelativePath=":8800/data?" the query editor adds a backslash between the com and :8800. How can i remove that backslash?
I want refresh the data automatically. Thats why i use the relativepath

1 ACCEPTED SOLUTION
RayWu
Memorable Member
Memorable Member

Hi @jerryfalcobi 
maybe this help.

https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-i...

let
    searchText = "Power Query"
in
    Web.Contents(
        "https://www.bing.com",
        [
            RelativePath = "search",
            Query = [q = searchText]
        ]
    )

 

View solution in original post

1 REPLY 1
RayWu
Memorable Member
Memorable Member

Hi @jerryfalcobi 
maybe this help.

https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-i...

let
    searchText = "Power Query"
in
    Web.Contents(
        "https://www.bing.com",
        [
            RelativePath = "search",
            Query = [q = searchText]
        ]
    )

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.