cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
chorn New Member
New Member

Can the user supply values to a RESTfull API call

Hi,

 

I have a RESTfull API that generates reports based on some user supplied parameters. Is it possible for PowerBI to ask for these user supplied parameters? The general scenario I'm trying to achieve is:

  1. In PowerBi each individual user should be able to put in some different values.
  2. The values are sent to a RESTfull API.
  3. The API will collect and transform data based on the values received and serve the resulting data in the response.
  4. PowerBI receives the response from the API and presents it to the user in a report.

E.g. users should be able to generate a report showing information about customer subsets. However, the users only want to generate the report for a specific subset of the customers, say a user wants to see a report about female customers, who are 40-50 years old, and have children. Is it possible to create a form or something like that, that accepts that input from the user, sends it to a RESTfull API and receives a response with information about female customers, who are 40-50 years old, and have children?

 

I hope it makes sence. 

Thanks Smiley Happy

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Can the user supply values to a RESTfull API call

Hi chorn,

 

You can use URL filter as post request to achieve your requirement, URL filter support uses expression syntax like pattern below:

URL?filter=Table/Field eq 'value'

It also supports one field filter and multiple fields filters, for more details, please refer to this documentation:

https://docs.microsoft.com/en-us/power-bi/service-url-filters.

 

Regards,

Jimmy Tao

1 REPLY 1
Community Support Team
Community Support Team

Re: Can the user supply values to a RESTfull API call

Hi chorn,

 

You can use URL filter as post request to achieve your requirement, URL filter support uses expression syntax like pattern below:

URL?filter=Table/Field eq 'value'

It also supports one field filter and multiple fields filters, for more details, please refer to this documentation:

https://docs.microsoft.com/en-us/power-bi/service-url-filters.

 

Regards,

Jimmy Tao