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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
bhatnaam
Regular Visitor

Dynamic REST Call on slicer selection

Hi All,

 

I need help for the following problem - 

 

A dashboard is required in Power BI where, initially, the data should be fetched based on default parameters using a REST API Call (Custom Azure service written by us for the client) and the dashboard must be populated.

 

This dashboard will have Date Filters, so whenever the user changes the filter the API will be called with the Date values from the slicer as query parameters and the data must be fetched into Power BI dashboard.

 

We need this in a shared enviroinment (Power BI Service) or in Web published dashboards

 

I have seen many exmples of REST API in Power BI but could not get a concrete solution.

 

Please help

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @bhatnaam,

 

Maybe I don't get your point. Let's find out more.

Power BI already support many kinds of data source. Usually the datasets of a dashboard can connect to online services or on-premise data through a Gateway, without REST api. 

1. In your scenario, we can connect to the source data using DirectQuery, which is a live connection.

2. Or do you mean: one dashboard is there, and other dashboard take it as source?

 

Best Regards!

Dale

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

Hi Dale,

 

Let me try to answer you - 

 

1) I understand Direct Query but I need to format data in Power BI, so cannot use it. Its for a POC so put effort to change backend format accoridngly.

 

2) Its like calling the API post I filter on dashboard. For example, my dashboard wiull have date fields - Month, Quarter, Year. By default when the dashboard displays data for Mon = January, Qtr=1 and Year = 2017. Now, the user will change these filters to Mon=Feb, Qtr =1, Year = 2017, then the API must the called again to fetch data for this selection (dates will be passed in query paramters) and dashboard must be updated accordingly. I need to do this with API only as that is a business requirement.

 

Hope this replies to your queries, let me know if you need anyting more.

 

Regards

Aman 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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