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

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 🙂

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

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

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

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

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.