cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors