# Preserve Power Query query folding for performance Check which transformations fold, find the first step that breaks folding and measure refresh time and source workload before and after. - Canonical: https://satracking.net/guides/powerquery-query-folding-performance/ - Language: en - Category: platforms - Level: intermediate - Published: 2026-11-14 - Updated: 2026-11-14 --- ## Understand folding Check which transformations fold, find the first step that breaks folding and measure refresh time and source workload before and after. The source performs the work and returns the reduced result. Folding is not guaranteed for every connector or step, and some operations may stop it. ## Shape the query deliberately Filter rows and select columns early when those operations can fold. Prefer source-side operations for large datasets and avoid unnecessary custom transformations before selective filters. Review native query availability where supported, but do not assume every preview proves the final refresh behavior. ## Measure refresh behavior Compare refresh duration, source workload and row counts before and after changes. Check privacy levels, gateway configuration and incremental refresh requirements. If folding stops, identify the first non-folding step and evaluate whether it is necessary or can be moved later. Keep transformations readable and test with realistic data volume. ## Practical review Performance work should be evidence-led; preserving folding is useful only when it improves the actual refresh path. ## Further reading - [Microsoft Learn: Power BI guidance](https://learn.microsoft.com/power-bi/guidance/) - [Microsoft Learn: Power Query documentation](https://learn.microsoft.com/power-query/) ## Validate the model in the service context Test the report using the same refresh path, credentials, workspace roles and representative identities that will exist after publication. Desktop behavior alone does not prove that a gateway, scheduled refresh, row-level security or sharing configuration is correct in the Power BI service. Keep a small set of known records and expected totals so a deployment can be checked quickly. Document ownership for the semantic model, data source credentials, refresh failures and business definitions. Separate a measure's technical expression from its business meaning: users need to know what is included, excluded and how the value should be interpreted. Review performance with realistic data volume and common slicer combinations. When a model changes, retest dependent reports and permissions. **Release checklist:** validate source credentials; confirm refresh; test representative user access; reconcile key measures; inspect performance; record owner and rollback path. ## Official references - Microsoft Learn: Power BI guidance — https://learn.microsoft.com/power-bi/guidance/ (verified 2026-11-14) - Microsoft Learn: Power Query documentation — https://learn.microsoft.com/power-query/ (verified 2026-11-14)