SaTracking
PlatformsNEWIntermediate

Preserve Power Query query folding for performance

Query folding pushes supported transformations to the source and can reduce data movement.

Download for AI (.txt)

Measurement topic illustration · SaTracking

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.

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

EDITORIAL HISTORY

What changed

  1. v1.0
    Created and validated original bilingual guide for editorial batch 08.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.