Forum Discussion
Incremental refresh for dataflow takes as much time as full refresh
- 1 year ago
Can you define a view in the you SQL source that defines the query, including the CTEs, that you call in your data flow?
The red green colour strip indicates query folding
https://learn.microsoft.com/en-us/power-query/step-folding-indicators
You can see your second step breaks folding as it has a red indicator
thank you, I believe it's because i'm using a custom select. I searched online and the only thing I found to enable query folding with custom select is to add a step with Value.NativeQuery(...) and put the sql query inside
is there any other way to enable query folding apart from this workaround ? this workaround doesn't seem to allow the use of ctes.
- Deku1 year ago
Super User
not sure what you mean by custom select
- sarahshh1 year agoFrequent Visitor
this is what i meant:
- Deku1 year ago
Super User
Have you applied the folding flag on the native query like this?
Value.NativeQuery(Source, "SELECT DepartmentID, Name FROM HumanResources.Department WHERE GroupName = 'Research and Development' ", null, [EnableFolding = true])