Forum Discussion

Bas's avatar
Bas
Advocate II
10 years ago
Solved

SQL On-Prem with Enterprise Gateway refresh issue

Hello,

 

I have a question. I created a report in Power BI Desktop and used a SQL On-Prem server as source. On the server the Enterprise Gateway is intalled (and working). In Power BI Desktop I used te Get Data option and choose DirectQuery. Next I published the report to the Power BI service with a Pro account.

 

Because I'm using the Enterprise Gateway and DirectQuery, the data will be refreshed automatically. 

I want to show the report and dashboards on a big screen which is always turned on.

 

But the data is not automatically refreshed without clicking the Refresh button in the ribbon.

 

Is it possible to refresh the data automatically without clicking the Refresh button?

 

Thanks in advance.

  • Bas

     

    As ankitpatira mentioned, because your dataset uses DirectQuery, the only time data on a dashboard and/or report will change is when it is accessed and a query is sent to your on-premises data sources through the enterprise gateway.

     

    It sounds like your question is referring to having a dashboard showing at all times and seeing real-time changes as either new data or pre-existing data changes. This is not possible unless a query is being sent from the Power BI Service to your on-premises data source through a gateway.

     

    In your example, clicking the "refresh" button is equivalent to sending a query(s).

     

    You can either click the refresh button or possibly set your dashboard webpage to refresh on a certain interval through your web browser in some way.

     

    Hope this helps clarify things.

15 Replies

  • ankitpatira's avatar
    ankitpatira
    Community Champion

    Bas If you've connected to on-prem sql server using DirectQuery then you don't need to worry about data refresh as data is not stored in power bi. With DirectQuery you are connecting live to sql server. Everytime you access the report queries are sent to on-prem sql server and data is returned back for those queries. 

     

    What makes you say that data is not refreshed automatically ? You also don't need to worry about clicking Refresh button as it is live connection.

     

  • ankitpatira's avatar
    ankitpatira
    Community Champion

    Bas If you've connected to on-prem sql server using DirectQuery then you don't need to worry about data refresh as data is not stored in power bi. With DirectQuery you are connecting live to sql server. Everytime you access the report queries are sent to on-prem sql server and data is returned back for those queries. 

     

    What makes you say that data is not refreshed automatically ? You also don't need to worry about clicking Refresh button as it is live connection.

     

     

    • Bas's avatar
      Bas
      Advocate II

      ankitpatira Thanks for your reply. I understand that the data is automatically refreshed with DirectQuery. But my question is: Is it possible to refresh the data without clicking the refresh button on the ribbon?

      • wonga's avatar
        wonga
        Continued Contributor

        Bas

         

        As ankitpatira mentioned, because your dataset uses DirectQuery, the only time data on a dashboard and/or report will change is when it is accessed and a query is sent to your on-premises data sources through the enterprise gateway.

         

        It sounds like your question is referring to having a dashboard showing at all times and seeing real-time changes as either new data or pre-existing data changes. This is not possible unless a query is being sent from the Power BI Service to your on-premises data source through a gateway.

         

        In your example, clicking the "refresh" button is equivalent to sending a query(s).

         

        You can either click the refresh button or possibly set your dashboard webpage to refresh on a certain interval through your web browser in some way.

         

        Hope this helps clarify things.