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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
chad_oge
Frequent Visitor

Incremental Refresh when using a native SQL query

Hello,

 

I am executing a custom native SQL query to a PosgreSQL database through an ODBC connection.  I am trying to apply Incremental Refresh to the results of this query.  I have read query folding is not possible when starting with a custom native SQL query.

 

But, when applying the Incremental Refresh steps and posting to PowerBI service, the inital dataset load takes around 5 minutes, and every refresh after takes only 20 seconds.  Is this not some confirmation the Incremental Refresh is working?  It defitnetly does not seem to be reloading the entire dataset again.

 

Can anyone provide me some assistance with this?  

 

Thank you.

1 ACCEPTED SOLUTION
edhans
Community Champion
Community Champion

I agree @chad_oge . I almost never use the advanced query box. Use M code that folds or set up a view. 

If this thread is resolved for you, please consider marking one or more answer as "the solution"



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

3 REPLIES 3
edhans
Community Champion
Community Champion

Does your report have all of the data?
It may be that it is cached on your server so it runs faster the second time.

You can use folding with PostgreSQL if you are using the PostgreSQL connector. Not sure about the ODBC connector. See this blog article for enabling query folding after you have entered a manual query in the advanced section.
You can also check the server profiling for your server. See what query it is processing. It is the native query you typed in and that is it, or is it also filtering the data based on date ranges? If folding is happening, you will see filters on the date being inserted by Power Query.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Thank you for the reply.  I may try to solve my issue with creating a database view and importing the view into PoweBI.

edhans
Community Champion
Community Champion

I agree @chad_oge . I almost never use the advanced query box. Use M code that folds or set up a view. 

If this thread is resolved for you, please consider marking one or more answer as "the solution"



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.