Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
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/
Solved! Go to Solution.
Hi @emadrigals104 ,
Is this the table you want?
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.
Hi @emadrigals104 ,
Is this the table you want?
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.
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
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.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |