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
timhopson
Helper I
Helper I

Query Folding in Dataflow ignored by pbix

Hi, 

I have a dataflow that appears to support query folding, however, when I use the dataflow in a pbix, query folding doesn't happen and the whole table is imported, which is very large.

 

In the dataflow, I can view the DataSource Query (see the dataflow applied steps below). Which makes me think it's set up for Query Folding. There is also the green icon with the lightning flash.

timhopson_0-1669044610527.png

 

This is what I see when I use the dataflow as a data source in my pbix.

timhopson_1-1669044967866.png

I've tried adding a custom function View.NativeQuery and setting [EnableFolding=true] but it didn't appear to help.

 

I'd be grateful for any help on this.

 

regards, Tim.

1 ACCEPTED SOLUTION
KNP
Super User
Super User

Hi Tim,

 

I'm a little confused about what you're expecting to happen when you connect to the Dataflow in the PBIX file.

 

Also, I have questions.

  1. Is the Dataflow in a Premium or PPU capacity?
  2. Is the 'Enhanced compute engine' turned on for the Dataflow?
  3. Are you using the PowerPlatform.Dataflow connector in the Dataset?
  4. Is the table you are pulling into the PBI dataset from the Dataflow a computed table?

 

If any of these criteria (there may be others) are not met, chances are, the query folding won't happen.

If you've set the Dataflow table as import mode in the dataset, query folding will be largely irrelevant without filters or incremental refresh setup on the Dataset. 

Just because the 'View Native Query' is greyed out, it doesn't mean folding isn't happening. 

 

Hopefully some of this is helpful. Let me know if you have questions.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

View solution in original post

2 REPLIES 2
KNP
Super User
Super User

Hi Tim,

 

I'm a little confused about what you're expecting to happen when you connect to the Dataflow in the PBIX file.

 

Also, I have questions.

  1. Is the Dataflow in a Premium or PPU capacity?
  2. Is the 'Enhanced compute engine' turned on for the Dataflow?
  3. Are you using the PowerPlatform.Dataflow connector in the Dataset?
  4. Is the table you are pulling into the PBI dataset from the Dataflow a computed table?

 

If any of these criteria (there may be others) are not met, chances are, the query folding won't happen.

If you've set the Dataflow table as import mode in the dataset, query folding will be largely irrelevant without filters or incremental refresh setup on the Dataset. 

Just because the 'View Native Query' is greyed out, it doesn't mean folding isn't happening. 

 

Hopefully some of this is helpful. Let me know if you have questions.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

Hi KNP, 

Thanks for the reply. I was about to answer YES to all your questions when I realised that Enhanced Compute Engine wasn't turned on. Once I turned this on and refreshed the dataflows, the View Native Query became available. I have previously had this setting turned on and forgotten about it when I deleted the dataflow and re-created it.

Thanks again for your help.

 

regards, Tim.

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