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
rahul1
New Member

How to import tables from web?

Hi,

 

I need to import tables from 110 web links. Is there a way I can write a script to get those tables?

I do not want to fetch tables from one link at a time?

 

Example of the links are as follows:

 

www.test.com/1

www.test.com/2

www.test.com/3

 

So i want to write While Do script and use it to get the data.

 

Regards,

 

Rahul

6 REPLIES 6
Anonymous
Not applicable

Select Data > Get & Transform > From Web. Press CTRL+V to paste the URL into the text box, and then select OK. In the Navigator pane, under Display Options, select the Results table. Power Query will preview it for you in the Table View pane on the right.

Simple and easy for more info full stack developer course in bangalore - Be-practical.com

Anoushka
New Member

Click the Data tab, then New Query > From Other Sources > From Web.

Regards: Big Data Course in Chennai | Big Data Hadoop Training | Cloud Computing Courses

vignesgangboard
New Member

  1. Click the Microsoft Office Button , and then click Open.
  2. In the Look in box, locate Hadoop Training in Chennai the folder where your query file is stored.
  3. Select the Web query that Hadoop Course in Chennai you want to run.
  4. Click Open.
  5. In the Import Data dialog box, do one of the following:
Greg_Deckler
Super User
Super User

What I would recommend that you do is create queries for two of the entries and then in one of the queries, merge them together. You can follow the instructions in my article here:

http://social.technet.microsoft.com/wiki/contents/articles/32915.powerbi-merge-query-with-m.aspx

 

Once you have the M code, then write a script to generate the M code for merging all 110 web link sources. Create a blank query and paste in the generated M code.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

  1. Click the Microsoft Office Button , and then click Open.
  2. In the Look in box, locate the folder where your query file is stored.
  3. Select the Web query that Hadoop Training in Chennai you want to run.
  4. Click Open.
  5. In the Import Data dialog box, do one of the following:

A: You can import tables from a webpage using various tools or programming languages. One common method is using Python with the pandas library:

import pandas as pd

# Replace the URL with the webpage that contains the table
url = 'https://example.com/tablepage'

# Read all tables from the page
tables = pd.read_html(url)

# Access the first table
df = tables[0]

print(df.head())

Notes:

  • pandas.read_html() works only if the table is in proper HTML <table> format.

  • You may need to install dependencies like lxml or html5lib with pip install lxml html5lib.

Alternatively, for non-programmers, tools like Microsoft Excel or Google Sheets can import web tables:

  • In Excel: Go to Data > From Web, enter the URL, and select the table.

  • In Google Sheets: Use =IMPORTHTML("URL", "table", index).

Visit For more information: https://www.tpointtech.com/python-tutorial

 

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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