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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Anonymous
Not applicable

Why do need Gateway for Web Table? Cant Disable

Hi,
the sources for my dataset is was Google Analytics and Google BigQuery. I did not have to use Gateway for an update in Service. After I added another table from the WEB connection (table with currency rates) I can't update my dataset from Service without Gateway.

Galat198_0-1611132573000.png

On the one hand, it says I don't have to use Gateway,  But on the other hand, I can not cancel this, and Scheduled refresh not running without online Gateway.

What the problem ??

3 REPLIES 3
ibarrau
Super User
Super User

Hi. It will sound stupid but check your Power Query M code. The function "Web.Page" is the one that needs a gateway connection. I'm not sure which environment from windows uses but that's the function that will require it. The Web.Content for example won't need. The problem is that if you are scrapping a web site you must use a gateway.

Hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

@ibarrau 

let
    Source = Web.BrowserContents("https://www.xe.com/currencytables/?from=USD"),
    #"Extracted Table From Html" = Html.Table(Source, {{"Column1", "TABLE[id='historicalRateTbl'] > * > TR > :nth-child(1)"}, {"Column2", "TABLE[id='historicalRateTbl'] > * > TR > :nth-child(2)"}, {"Column3", "TABLE[id='historicalRateTbl'] > * > TR > :nth-child(3)"}, {"Column4", "TABLE[id='historicalRateTbl'] > * > TR > :nth-child(4)"}}, [RowSelector="TABLE[id='historicalRateTbl'] > * > TR"]),
    #"Promoted Headers" = Table.PromoteHeaders(#"Extracted Table From Html", [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Currency code#(lf)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)▲▼", type text}, {"Currency name#(lf)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)#(tab)▲▼", type text}, {"Units per USD", type number}, {"USD per Unit", type number}})
in
    #"Changed Type"

 

Web.BrowserContents no need?
 

The scrapping methods need gateway. I have mentioned Web.Page because it's set by default in desktop. In your case the Html.Table will ask for gateway. It needs a place te get an understanding of the html code. That place is the gateway in windows  😞

Hope this helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors