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
Anonymous
Not applicable

Pull all files from all URL's that are visible on a webpage

Hi,

An agency I work with has given me a download of the data I need. It's 2,500 (!) CSV files. They've given me a webpage with the links to the files. So imagine that you need to go to www.download.com/thisisthepage.html and then you only see the following:

 

https://download01-01-2019.csv

https://download02-01-2019.csv

https://download03-01-2019.csv

... and this 2500 times.

 

I can easily pull a list of all the download link URL's in powerbi by using get data from web, and then drilling a bit deeper into the HTML. But the next step would be to load all those URL's and turn them into one query how can I pull all the data of these links in one query so I can start manipulating it?


Regards

Bas

1 ACCEPTED SOLUTION

Hi @Anonymous 

once you have all csv-URLs in a column of a table, add another column with the formula: Web.Contents([YourColumnName])

This will retrieve the binary content from the web and create some arrows in the table name the should trigger the "Combine binaries"-procedure. This will create a query that will automatically be connected to a function ... that will automatically be applied to all your files. You can then perform all your transformations in the query and everything you do in there will automagically be applied to the other files as well (through the connected function).

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

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

Most likely need a custom M function. @ImkeF or @edhans can probably assist.



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...

Hi @Anonymous 

once you have all csv-URLs in a column of a table, add another column with the formula: Web.Contents([YourColumnName])

This will retrieve the binary content from the web and create some arrows in the table name the should trigger the "Combine binaries"-procedure. This will create a query that will automatically be connected to a function ... that will automatically be applied to all your files. You can then perform all your transformations in the query and everything you do in there will automagically be applied to the other files as well (through the connected function).

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

Wow! I just bumped into this post, and I tried it - it is functioning perfectly! Thanks for that!

Anonymous
Not applicable

That works perfect @ImkeF , you're a star! Thank you very much.

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.