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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
sarahshh
Frequent Visitor

Incremental refresh for dataflow takes as much time as full refresh

Hello,

I've used incremental refresh for my dataflow, but it takes almost as long as the full refresh.

He're below is the configuration and the timings:

sarahshh_2-1741701924084.png

 

for the full refresh (~15min):

sarahshh_1-1741701865010.png

 

for incremental refresh (~15min):

sarahshh_0-1741701748337.png

 

Do you know why ?

Thanks !

1 ACCEPTED SOLUTION

Can you define a view in the you SQL source that defines the query, including the CTEs, that you call in your data flow?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

11 REPLIES 11
Rigensis
Resolver I
Resolver I

From your screenshots it looks like the Incremental refresh, at least in the way it is set up now, is not actually loading a portion of the data during incremental load.
As we see in your screenshots, in both full and incremental refreshes the 'Rows Processed' column shows pretty much the same number of rows.
This could be, as @Deku mentions, due to query folding not working. Or it could be that the date field to which you have set the incremental load is affecting a lot more rows that you initially expect.

How do I know if the query is folding ? here's what I see in the dataflow editor:

sarahshh_0-1741711206145.png

 

 

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


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
sarahshh
Frequent Visitor

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.

not sure what you mean by custom select


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
sarahshh
Frequent Visitor

this is what i meant:

sarahshh_0-1741769428224.png

 

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])


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
sarahshh
Frequent Visitor

yes, I did, that's the workaround I found online instead of putting my sql query in the advanced options. I was asking if there is any other way to enable query folding as i can't wrap a sql query containing CTEs in Value.NativeQuery(Source, ...).. it gives me an error

Can you define a view in the you SQL source that defines the query, including the CTEs, that you call in your data flow?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
sarahshh
Frequent Visitor

not a bad idea, i will do this then, thank you ! 🙂

Deku
Super User
Super User

Are you sure the query is folding?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.