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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
y2gabs
Frequent Visitor

List of Parameters in web source connection string and dynamic filtering to switch parameters

Hi there, maybe a dumb question (or likely a dumb way to ask it) so please forgive me here if so.  I've created a powerbi report that queries yahoo finance table as a web source and am using a list of parameters (stock ticker) in the connection URL.  I'm wondering, is there a way to switch between parameters in the connection string via embed URL filter parameters?  

 

Something like the below embed URL parameter but instead of a filter I use some how change the web source query string parameter?  

URL?filter=Table/Field eq 'value'

 

Thanks!

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @y2gabs ,

 

If you are talking about dynamically changing the report dataset by changing the URL parameter in power Bi service, this is not possible.

In desktop, we can get the content of URL by creating a custom function, and get the specified content through parameter input.

(p as number) as table =>
let
    Source = Web.BrowserContents("https://xxxxxxxxx/all/a1_p" &Number.ToText(p)&"/")
    
in
    Source

You can also refer to these blog for details:

https://hatfullofdata.blog/power-query-fetch-web-data/ 

https://blog.crossjoin.co.uk/2016/05/15/creating-m-functions-from-parameterised-queries-in-power-bi/ 

 

Best Regards,
Liang
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

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @y2gabs ,

 

If you are talking about dynamically changing the report dataset by changing the URL parameter in power Bi service, this is not possible.

In desktop, we can get the content of URL by creating a custom function, and get the specified content through parameter input.

(p as number) as table =>
let
    Source = Web.BrowserContents("https://xxxxxxxxx/all/a1_p" &Number.ToText(p)&"/")
    
in
    Source

You can also refer to these blog for details:

https://hatfullofdata.blog/power-query-fetch-web-data/ 

https://blog.crossjoin.co.uk/2016/05/15/creating-m-functions-from-parameterised-queries-in-power-bi/ 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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