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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. 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
Employee
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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors