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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.