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

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.

Reply
Anonymous
Not applicable

Alternative to parameters to do dynamic API calls

I have a blank query data source that is used to get data from an API. The API has fields that allows to choose the period and the customer id for which we want data.


I want to give users the ability to select the period and the customer directly in the report.


I created parameters to allow the users to enter the period and the customer id.  The parameters are used in the M code that gets data from the API (inside the blank query data source).  This solution "works", however parameters have a few limitations that prevent me from using the report in production:

- Changing parameters is not possibble directly in the report: 
In Desktop the user need to go in "Manage Parameters/ Edit Parameters". 
In Online, the user need to click on the settings of the dataset to modify the parameters. Then the user need to refresh the dataset. This is particularly annoying in online since the parameters will be changed for all users.

- I find it difficult to display the parameters values directly in the report. I was able to display it in my report by selecting "Enable load" on the Parameter query, but I needed to manually refresh the data (of the data source associated to the parameter) each time I modified the parameters.


I was wondering if you have alternative to propose instead of using parameters.
Thanks!

1 REPLY 1
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

It is nessary to refresh data after you change the parameter because it need to run query again based on the new parameter value, Sorry for that, but I also not found an effective solution to change value of parameter in the report directly.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors