Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
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!
Solved! Go to Solution.
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
SourceYou 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.
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
SourceYou 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |