Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have fetched data from an API. The data is about weather. It is giving me static location. But with the help of parameter i have made dimension dynamic. Now to change location every time i have to go to transform data>Edit parameter and change the parameter from there. Is there any other easy way to change parameter like a search box
@Shivam8683 , Check below video
https://youtu.be/7TfV8qTUyfU?si=9_WjSImWTEiLKJbQ
Proud to be a Super User! |
|
But i don't have any location column. The api gives me data of whatsoever the location i enter in parameter
Use the SelectedLocation parameter in your API query to fetch data for the selected location.
Proud to be a Super User! |
|
This will give data for values present in table. How can i enter any city, state, country without creating new table
Hi @Shivam8683, I think that with shared video and previous comments @bhanu_gautam is highlighting the usefulness of lists to limit values that can be selected to make sure the query always returns a correct result.
If you want to provide the maximum flexibility, simply create 3 parameters of type text for city, state and country and alllow any value to be typed. However, you should be careful as a wrong value can be inserted (city with typo, non-existing country etc.)
HI @bhanu_gautam, is it really possible?
If we talk about Import storage mode, I expect that PowerQuery is executed when semantic model is refreshing, therefore, any parameter value for API (to be used in PowerQuery) should be provided before semantic model refresh. In such case, when user is interacting with refreshed report (e.g. selecting some value in a slicer visual), it will not affect the refresh, thefore there will be no new API call. Isn't it so?
Maybe it works in a different manner when using DirectQuery, however even in this case, I don't expect that user can change parameter through interaction with a slicer on report canvas.
As of my knowledge, the only way to interact with parameters if not using PowerBI desktop is through "Semantci Models" in PowerBI service:
If you can provide some references where to learn more about your suggestion I'd be very grateful 🙂 Thank you!
@Sergii24 , My bad yes you are right it will not work
Proud to be a Super User! |
|
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!