Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I am new to web scraping using Power BI. I have had some successes of using the software to extract data from easily built websites and iterated over multiple pages. I am struggling with sites that are heavily coded in java where the data isn't fully displayed in a table. I am trying to connect to a website below and this is the M code;
l
et
Source = Web.BrowserContents("https://www.kirkland.com/lawyers?level=9ff51805-f16d-4d64-9794-6cff75200182"),
#"Extracted Table From Html" = Html.Table(Source, {{"Persons Name", ".person-result__name"}, each [Attributes][href]?}, [RowSelector=".person-result__main > A"]),
#"Changed Type" = Table.TransformColumnTypes(#"Extracted Table From Html",{{"Persons Name", type text}})
in
#"Changed Type"
I am just trying to extract the person name for each of the occurences on the page. I get the error "We Cannot covert a value of type function to type list". Would you be able to offer any guidance to what I'm doing wrong on a website like this?
Thanks for getting back to me, much appreciated.
Sorry @Cmoore - I don't think Power Query can help in this situation. If you look at the result of the "Web.BrowserContents". Show that Javascript is disabled, so you get a big text string.
The most interesting part of this string is the value="PE1...." part. This can be read using:
Text.FromBinary(Web.Contents("https://www.kirkland.com/lawyers?letter=A") , BinaryEncoding.Base64),but it only returns the page structure not the lawyer data
It looks like you need to use an API to get the information.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |