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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors