Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I needed to import data from the web where it was just the ending of the URL that was changed.
So I read and implemented on how to create a function where I could pass the ending of the URL to the function as a parameter.
The function had the following structure:
(DataItem as text) =>
let
source = Csv.Document(Web.Contents("www.mydatabase.com/" & DataItem), [everyting else....])
in
source
So the problem that I have is that there is a small box below the function description where I can type in a string that is passe to the function, but what I would like is that instead of having to type in a string all the time I want to be able to select DataItem from a specified list parameter och a query parameter.
But I dont know how to specify to the function that the parameter should be a query or a pre-specified list.
Thank you in advance for your help
Best regards
Elijah
Hi @elijah2018,
You could check the similar examples in below links:
Regards,
Yuliana Gu
it's explaind in this article
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |