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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Dynamic URL as Source

Hi. 
I am trying to make some tables out of a web page in Power Query using dynamic URL as a source of the table. 
The URL i want to get info from is: 
https://www.proff.no/regnskap/akademika/bergen/bokhandlere/IFK8BWR006K/

The source is designed like this: 
https://www.proff.no/
TypeParameter: regnskap 
URLparameter: /akademika/bergen/bokhandlere/IFK8BWR006K/

The TypeParameter defines if I want to see roles, accounting data and so on and will be hard coded into the source. 
This works fine until I change the URLparameter. (Paste in a URL for another company).
For example: 

URLparameter: /experis-as/oslo/rekruttering/IG92BSJ046Z/ 


Then it seems like Power Query does not get the same HTML-table from the new company, and I get a empty table. 
The source is correct but it does not seem to get any data from the web page. When I change back to the orgininal URLparameter, everything is fine. 

I there anyone who knows why this is happening? 
Is there a M, code who lets me take inn all HTML tables in the source?
Best regards, 
Amalie 

amalie_0-1698663181951.png

amalie_0-1698663902041.png

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Please refer to these two articles to learn how to use parameters in dynamic URLs
Chris Webb's BI Blog: Web.Contents(), M Functions And Dataset Refresh Errors In Power BI
Chris Webb's BI Blog: Using The RelativePath And Query Options With Web.Contents() In Power Query And Power BI M Code

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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