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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Neillson
New Member

Generating Table from Website

Hi MS Fabric Community,

 

I am having trouble generating a table from the contact list found at the bottom porition of this URL: https://members.nathpo.org/thpodirectory/FindStartsWith?term=%23%21 

I would like to generate a new table with all data fields in a POWER BI.

 

Thanks for your help.

 

NM

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

 

let
    Source = Web.BrowserContents("https://members.nathpo.org/thpodirectory/FindStartsWith?term=%23%21 "),
    #"Extracted Table From Html" = Html.Table(Source, {{"Tribe", ".card-title *"}, {"Region", ".gz-cat"},  {"Address", ".gz-fa-map-marker-alt + *"}, {"Place", "[itemprop=""addressLocality""]"},{"State", "[itemprop=""addressRegion""]"}, {"ZIP Code", "[itemprop=""postalCode""]"}, {"Phone", "[itemprop=""telephone""]"},{"Web", ".gz-card-website > a", each [Attributes][href]}}, [RowSelector=".gz-list-col"])
in
    #"Extracted Table From Html"

 

How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done". Once you examined the code, replace the Source step with your own source.

View solution in original post

Well done. Thank you

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

 

let
    Source = Web.BrowserContents("https://members.nathpo.org/thpodirectory/FindStartsWith?term=%23%21 "),
    #"Extracted Table From Html" = Html.Table(Source, {{"Tribe", ".card-title *"}, {"Region", ".gz-cat"},  {"Address", ".gz-fa-map-marker-alt + *"}, {"Place", "[itemprop=""addressLocality""]"},{"State", "[itemprop=""addressRegion""]"}, {"ZIP Code", "[itemprop=""postalCode""]"}, {"Phone", "[itemprop=""telephone""]"},{"Web", ".gz-card-website > a", each [Attributes][href]}}, [RowSelector=".gz-list-col"])
in
    #"Extracted Table From Html"

 

How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done". Once you examined the code, replace the Source step with your own source.

Well done. Thank you

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

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.