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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Annur2001
Regular Visitor

Import data from web with changing the sources

Hi,

 

I want to import data from Wikipedia regarding the name of a province that each of it has suburbs or villages name. There are 34 provinces that I need to import and each province will have more than 15 suburb or villages, depend on the provinces.

 

I have the name of all provinces but I need to put suburbs or villages in each province. The source is, for example as below

 

https://id.wikipedia.org/wiki/Daftar_kabupaten_dan_kota_di_Jawa_Tengah

 

The red text is an example of the province name. If I change the province name directly in the website to, as an example, "Kalimantan_Barat", the website will show the suburbs or villages name in that province. I want to import that data by changing the province name only instead of import one by one and append the 34 details of provinces in one file. I look forward to your advice. 

1 ACCEPTED SOLUTION

@Annur2001,

You can. But the table structure in the two webpages are different(for example, some column name contain space), when you expand the custom column, you will find the data are not combined properly.

Thus I provide you another method, by choosing different parameters in the dropdown, then you can get different tables of different webpages, and you can append them later. Please download modified PBIX file to check details.

Regards,
Lydia

Community Support Team _ Lydia Zhang
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
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Annur2001,

You can create parameter in Power BI Desktop, for more details, please review the attached PBIX file.


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

Could you please explain about creating parameters in detail? 

What I mean in my question previously was whether possible to create like a table of province name then when I want to call the data of province that I need, I just type in or choose in the table instead of using edit queries tab and paste the new sources from a website. So, is it possible to do the same thing as getting the data from the website by changing the year tabs? as on youtube link below

 

https://www.youtube.com/watch?v=6PZSZ53iSos&t=395s

@Annur2001,

You can. But the table structure in the two webpages are different(for example, some column name contain space), when you expand the custom column, you will find the data are not combined properly.

Thus I provide you another method, by choosing different parameters in the dropdown, then you can get different tables of different webpages, and you can append them later. Please download modified PBIX file to check details.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

That was great. Thank you so much, it helps me a lot. 

I will append the data even though the columns name have different name or format (some of them have space).

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors