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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
emadrigals104
Frequent Visitor

How to connect to Website

Hi everyone, I have recently tried to connect to the web page, however, and tried to use Html.Table and have not been successful in extracting the team stats information from the following web page. I appreciate your collaboration.

 

https://es.uefa.com/uefachampionsleague/statistics/clubs/ 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @emadrigals104 ,

 

Is this the table you want?

vstephenmsft_0-1653555850486.png

 

Best Regards,

Stephen Tao

 

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @emadrigals104 ,

 

Is this the table you want?

vstephenmsft_0-1653555850486.png

 

Best Regards,

Stephen Tao

 

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

ImkeF
Community Champion
Community Champion

Hi @emadrigals104 ,
sorry, I have no idea why that is. I'm getting a full table with that script.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

emadrigals104
Frequent Visitor

Hi @ImkeF 

 

I tried to run the submitted script but it gives me an error when trying to access the web page. I have permissions enabled in my config and I have webview2. I do not understand why it does not let me see that specific page, since if I use other web pages, I have no problems.

 

HTML Table.png

 

ImkeF
Community Champion
Community Champion

Hi @emadrigals104 ,
this query returns the results that I would expect:

let
    Source = Web.BrowserContents("https://es.uefa.com/uefachampionsleague/statistics/clubs/"),
    #"Extracted Table From Html" = Html.Table(Source, {{"Column1", ".N51GH5vJJlIa6hwjHbZQ"}, {"Column2", ".pk-badge + *"}, {"Column3", ".pk-identifier SPAN + *"}, {"Column4", ".is-active .a6hEscoxpkolLo5esjqi"}, {"Column5", ".with-width:nth-child(3) *"}, {"Column6", ".with-width:nth-child(4) *"}, {"Column7", ".sc-pk-table-cell-h:nth-child(5) *"}}, [RowSelector=".sc-pk-table-row-h"]),
    #"Changed Type" = Table.TransformColumnTypes(#"Extracted Table From Html",{{"Column1", Int64.Type}, {"Column2", type text}, {"Column3", type text}, {"Column4", Int64.Type}, {"Column5", Int64.Type}, {"Column6", Int64.Type}, {"Column7", Int64.Type}})
in
    #"Changed Type"



Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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