~/talk

Query folding in Power Query

Talkat SQLBits 2023 · 2023-03-14..03-18· [data-visualization]
links:none on file
slides:none on file

Explains that query folding pushes Power Query transforms into the source for much better refresh performance and shows how to verify it: Power BI Desktop + SQL Server Profiler captures the generated SELECT with WHERE for a column removal and a day-name filter, while Power Query Diagnostics (and Fiddler) reveal OData calls. Demonstrates that adding an index column stops folding, that rewriting steps (custom column = 1 for a Cartesian join, reordering, or using value.nativequery enable folding=true) can restore folding, and that table.stopfolding forcibly prevents it; also shows view native query and query diagnostics.

AI-written summary · about

  1. 0:00Introduction to query folding
  2. 1:11What is query folding
  3. 3:53Importance of query folding
  4. 5:42Detecting query folding
  5. 10:28Using view native query
  6. 11:41Diagnosing query folding
  7. 14:43Folding in Power Query Online
  8. 15:51When folding stops
  9. 17:17Optimizing folding techniques
  10. 19:24Native SQL and conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.