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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
chad_oge
Frequent Visitor

Incremental Refresh with PostgreSQL - Is query folding happening?

Hello,

 

In PowerBI, I am using the PostgreSQL connector to query a database view.  I would like to set up incremental refresh for this view.  Through my research, I have seen as long as you can "View Native Query" in the applied steps, query folding is happening.

 

After applying the RangeStart and RangeEnd date filters, I am indeed still able to "View Native Query".  But, when I run "Diagnose Step" on the applied filter, I see an operation returned saying "ReportFoldingFailure".  Does this mean that query folding is actually not occurring?  And is there any solution to solve this?

 

Thank you

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@chad_oge 

According to the official doc, it is not recommend to use nonfoldable queries. Incremental refresh fordatasets in Power BI - Power BI | Microsoft Docs

 

" If you see this warning and want to verify the necessary query folding is occurring, use the Power Query Diagnostics feature or trace queries by using a tool supported by the data source, like SQLProfiler. If query folding is not occurring, verify the filter logic is included in the query being passed to the data source. If not, it's likely the query includes a transformation that prevents folding."

 

Reference:

Query folding guidance in Power BI Desktop - Power BI | Microsoft Docs

Query folding | Microsoft Docs

 


PaulZheng_ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

 

lbendlin
Super User
Super User

Query folding is not an absolute requirement for incremental refresh.  It is certainly preferred but incremental refresh will also work with data sources that do not support folding.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.