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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
frithjof_v
Super User
Super User

Delta Tables - Query folding?

Hi,

 

I have created a Delta Lake table in the Files section of my Lakehouse.

 

frithjof_v_0-1725185553103.png

 

 

 

I can connect to this table like this in Power BI Desktop:

frithjof_v_1-1725185174184.png

 

Here's the M code:

frithjof_v_2-1725185285890.png

 

Will the query fold?

I mean, if I apply some transformation steps e.g. filters or choose columns in Power Query, will those operations be foldable?

 

It doesn't seem to fold, based on the query folding indicator in Power BI Desktop.

 

The reason why I don't want to query the SQL Analytics Endpoint, is due to the potential for sync delays between Lakehouse and SQL Analytics Endpoint. That's why I connected Power Query directly to the delta table in the "Lake" part of the Lakehouse.

 

I'm wondering if Power Query can run foldable queries directly on Delta Lake tables (without querying the SQL Analytics Endpoint)?

 

Ref. also https://blog.fabric.microsoft.com/en-us/blog/read-data-from-delta-lake-tables-with-the-deltalake-tab...

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @frithjof_v ,

 

Currently, Power Query does not support query folding for Delta Lake tables. This means that transformations like filters or column selections applied in Power Query may not be pushed back to the Delta Lake table, and instead, they are processed locally within Power Query.

 

In Power Query, Query Folding refers to converting a data transformation step into a single query statement that the source database can execute. This means that Power Query pushes the data transformation step to the data source for execution whenever possible, rather than processing all the data in Power Query.

 

If you want to know more about query folding see the official documentation below:

Understanding query evaluation and query folding in Power Query - Power Query | Microsoft Learn

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

andrewb279
Frequent Visitor

Chris Webb had a great blog post on this topic.

https://blog.crossjoin.co.uk/2023/12/17/incremental-refresh-on-delta-tables-in-power-bi/

 

As long as you partition the Delta table and configure your query to filter on the partition column, you can do incremental refresh. In other scenarios I don't believe incremental will work without going through the SQL endpoint.

View solution in original post

2 REPLIES 2
andrewb279
Frequent Visitor

Chris Webb had a great blog post on this topic.

https://blog.crossjoin.co.uk/2023/12/17/incremental-refresh-on-delta-tables-in-power-bi/

 

As long as you partition the Delta table and configure your query to filter on the partition column, you can do incremental refresh. In other scenarios I don't believe incremental will work without going through the SQL endpoint.

Anonymous
Not applicable

Hi @frithjof_v ,

 

Currently, Power Query does not support query folding for Delta Lake tables. This means that transformations like filters or column selections applied in Power Query may not be pushed back to the Delta Lake table, and instead, they are processed locally within Power Query.

 

In Power Query, Query Folding refers to converting a data transformation step into a single query statement that the source database can execute. This means that Power Query pushes the data transformation step to the data source for execution whenever possible, rather than processing all the data in Power Query.

 

If you want to know more about query folding see the official documentation below:

Understanding query evaluation and query folding in Power Query - Power Query | Microsoft Learn

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.