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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors