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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.