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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Imrans123
Advocate V
Advocate V

SQL Query / Native Query Refresh issue

Hey all, 

 

Was wondering if anyone would have a fix or suggestion with the following problem I am facing. 

 

For background information, I have multiple SQL Database Sources and for each source, I have a dataflow tied in with the gateway where the SQL Database is installed.

 

I initially used to bring in the raw tables and transform the data from the SQL source to the format that I require (it is the same format for all sources) using power Query. Since they are all the same format after transformation, I append the queries in a separate dataflow and use the appended dataflow as my PBI report source.

 

I recently started using Native Query to query in data from my SQL database onto Power Query in the format that I want rather than using Power Query transformations which works much faster. However, if for whatever reason, in the scheduled refresh, if the dataflow is unable to refresh for reason like the data gateway being off etc., then the data for that sql source disappears from the report after refresh. Whereas in my old method, if there was a refresh error, I would still retain the data that was there in the last sucessful refresh.

 

Was wondering if anyone had the same issue and how it was addressed.

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Imrans123 ,

 

Have you ever successfully configured gateway or something else to make the refresh work? 

Or how about try Incremental refresh?

An overview of Power BI Incremental Refresh

Natives Queries or ODBC with Incremental Refresh in Power BI

Configure incremental refresh and real-time data for Power BI datasets - Power BI | Microsoft Docs

 

Best Regards,
Eyelyn Qin

Hi Eyelyn, 

 

I have sucessfuly configured the gateway and the scheduled refresh works exactly the way I want it to. The only issue is when I cannot refresh for issues outside of Power BI. Say for example if the gateway is not connected to the internet, or off, or something of that nature.

 

In that case, the data from that gateway disappears from the appended dataflow. Whereas before I started using Native Query, if the data flow refresh failed, the appended dataflow would still retain the data that was there in the last successful refresh. 

 

I prefer not to use incremental refresh because my previous data changes and I don't have a modified date field. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors