Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have this slicer.
I want the end user to select a Currency Code from the slicer and then use that Currency Code in a REST API call in Power Query?
How do I add the Currency Code selected in this slicer to the end of this API call?
https://api.website.com/v2/exchange-rates?currency= ???
let
exchange_rates_url = "https://api.website.com/v2/exchange-rates?currency={Currency Code}", //Web Url
request_limit = "10000", //number represented by a string
Source = Json.Document(Web.Contents(exchange_rates_url, [Query = [limit = request_limit]])),
// number represented by a string
data = Source[data],
// number represented by a string
rates = data[rates],
#"Converted to Table" = Record.ToTable(rates)
in
#"Converted to Table"
Solved! Go to Solution.
Dynamic M Query Parameters only work with Direct Query data sources. Your API isn't one.
Hi @girlwonder
As the @lbendlin mentioned, if you want to use the dynmaic paramater, you need to make sure that your connection mode is direct query, such as SQL database and so on, they can be connected by Power BI Desktop with direct mode, You can refer to the following link about the dynamic paramater.
If you want to change the paramater with the import mode, it only can be changed in power query or In data source settings in Power BI Service, You can refer to the following link.
You can change the data source to the ones that support direct query mode. such as :
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @girlwonder
As the @lbendlin mentioned, if you want to use the dynmaic paramater, you need to make sure that your connection mode is direct query, such as SQL database and so on, they can be connected by Power BI Desktop with direct mode, You can refer to the following link about the dynamic paramater.
If you want to change the paramater with the import mode, it only can be changed in power query or In data source settings in Power BI Service, You can refer to the following link.
You can change the data source to the ones that support direct query mode. such as :
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Dynamic M Query Parameters only work with Direct Query data sources. Your API isn't one.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |