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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
brijenshah
Regular Visitor

Direct Query for REST API

I am showing current server status (Running / Terminated) to Power BI report using API. I am able to call REST API (Server Status) using Get Data | Web and showing the status. However, when I publish the report to PBI Service and refresh (NOT schedule refresh) the report is not getting current status instead of showing old data (imported data). I research a bit and come to know that API doesn't support direct query and need to develop custom connector (ODBC) to support direct query API. Question: Anyone has built direct query rest API connector or any workaround to solve the issue? Any pointer will be helpful.

 

I look at third-party components which support direct query rest API but looking for a free or GitHub source. https://www.progress.com/tutorials/odbc/directquery-your-custom-rest-api-in-power-bi

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @brijenshah ,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @brijenshah ,

 

Firstly, I'm afraid that both of REST API and ODBC are not the supported data source for Direct Query in Power BI.

 

You could check the supported data source for Direct query in Power BI with this document.

 

For your scenario, if I understand correctly that you want to get the latest data after refresh in Power Service.

 

By my test with the link below, it seems that we don't need configure the gateway and it will refresh successfully for REST API.

 

Have you checked the refresh status under Refreh history?

 

refresh history.PNG

 

Best Regards,

Cherry

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

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors