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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
olegkazanskyi
Helper II
Helper II

Dataflow Enhanced Engine is On. Why folding doesn't work?

My dataflow enhanced engine is On.

From the documentation and my tests, it should work as a SQL server with folding options.

I download the data to the desktop with filter as a first step, but it still downloads all the data as with regular PowerQuery mode (the total Gb is the same).

Does anyone know the reason and how to fix it?

2 ACCEPTED SOLUTIONS
bcdobbs
Super User
Super User

Which option are you using in Power Bi desktop? I think I read that it will only fold if you use the newer Dataflows connector rather than the original PowerBI Dataflows connector.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

v-yetao1-msft
Community Support
Community Support

Hi @olegkazanskyi 

Dataflow Enhanced Engine and Query folding are not related .

Dataflow Enhanced Engine : Reduce refresh times for long-running ETLs and facilitates direct queries on entities .

Query folding : Query folding is the ability for a Power Query query to generate a single query statement to retrieve and transform source data.

As you said that you have a simple filter function in the dataset's query to extract the last 3 months data , but the amount of data pulled is as big as the full 5 years of transactions . Maybe you can set the filter in Desktop or data source to see if the returned data is filtered by you .

 

Best Regard

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yetao1-msft
Community Support
Community Support

Hi @olegkazanskyi 

Dataflow Enhanced Engine and Query folding are not related .

Dataflow Enhanced Engine : Reduce refresh times for long-running ETLs and facilitates direct queries on entities .

Query folding : Query folding is the ability for a Power Query query to generate a single query statement to retrieve and transform source data.

As you said that you have a simple filter function in the dataset's query to extract the last 3 months data , but the amount of data pulled is as big as the full 5 years of transactions . Maybe you can set the filter in Desktop or data source to see if the returned data is filtered by you .

 

Best Regard

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

bcdobbs
Super User
Super User

Which option are you using in Power Bi desktop? I think I read that it will only fold if you use the newer Dataflows connector rather than the original PowerBI Dataflows connector.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Using a simple Dataflow connector helped!

Thank you very much!

lbendlin
Super User
Super User

one has nothing to do with the other.  Query folding depends on your data source and the transforms you conduct in Power Query.  For example a seemingly innocent transform like Text.Upper() will completely prevent Query Folding.

@lbendlin

I have a simple filter function in the dataset's query.

I try to extract the last 3 months, but the amount of data pulled is as big as the full 5 years of transactions.

Before moving this to a dataflow, you can test it in Power BI Desktop (ie in Power Query on the desktop).  There you can run query diagnostics to see if and when query folding breaks, and what the queries are that query folding is producing. Those might be suboptimal too.

 

You can then do the same in your dataflow - right click on each step and select "View datasource query"  and "view query plan".

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors