Forum Discussion
Memory consumption issue while refreshing the data source
- 7 months ago
1) Check query folding at the step right before Sort/Index
In Power Query, right-click the step → View Native Query.
If it’s disabled, folding is already broken → sorting/indexing is happening locally.
Goal: keep folding up to the point where you filter/reduce rows, then do sort/index.
2) Reduce data before sorting/indexing
Apply these as early as possible (while folding still works):
Filter rows (date range, status, etc.)
Remove unused columns
Avoid unnecessary type conversions early
3) If you need stable “row number”, do it at the source (best practice)
If you can change the upstream system:
Generate row numbers / ordering in the source (SQL/view/service)
Expose it via OData as a column
This avoids Power Query doing expensive sorts.
Hi Scott_walter,
the problem can't be the data size.
Do you by chance have calculated columns using those columns with index? Those are evaluated during refresh
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI