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

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

Reply
ahmedshalabyy12
Advocate II
Advocate II

loading the source several times

Hello All,

I get the data from an Excel sheet and make some transformations; the source is only 10mb in the first 3 steps. The sheet was loading only 10mb in the Power Query, but after several step,s the sheet was loading 40mb  i took a screenshot while it was loading from 26 to 40mb 

 

what's the reason for that 

ahmedshalabyy12_0-1753822226806.png



Thank you 

3 ACCEPTED SOLUTIONS
selimovd
Super User
Super User

Hey @ahmedshalabyy12 ,

 

Chris Webb had a great article/video a few years ago why data sources are being loaded multiple times:

Chris Webb's BI Blog: Why Does Power BI Query My Data Source More Than Once?

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Connect with me: LinkedIn

View solution in original post

Royel
Responsive Resident
Responsive Resident

Hi, @ahmedshalabyy12 

Excel files don't support query folding, which means transformations cannot be pushed back to the data source. So, each transformation step requires Power Query to reload the entire dataset from Excel, process it in memory, then apply the next transformation. That's why you are experiencing more memory usage than the actual size. 

 

Some helpful articles from Microsoft Learn: 

1.  Query evaluation and query folding in Power Query

2. Why does my query run multiple times?

If it helps ✔ Give a Kudo • Mark as Solution – help others too!

View solution in original post

v-sshirivolu
Community Support
Community Support

Hi @ahmedshalabyy12 ,
Thank you for reaching out to Microsoft Fabric Community Forum.

Here are some steps to help address the file size increase:

Optimize Column Expansion: Use Table.Buffer at the start of your query to avoid processing the same data multiple times. Then, use "Choose Columns" to keep only the necessary fields before expanding.
https://learn.microsoft.com/en-us/power-query/optimize-expanding-table-columns

Pre-Process the Excel File: Clean up the source file by deleting unused rows, columns, and extra formatting. Reload it into Power Query to reduce its size and make transformations more efficient.
https://learn.microsoft.com/en-us/power-platform/well-architected/performance-efficiency/optimize-da...

Avoid Data Model and Split Queries: Load the data as "Connection Only" to prevent issues with compression. If your query has many steps, consider splitting it into smaller queries to better manage memory and minimize size increases.
https://learn.microsoft.com/en-us/powerquery-m/table-distinct
Try these steps in Power Query Editor to help identify the cause and improve performance.


Thank you.

View solution in original post

3 REPLIES 3
v-sshirivolu
Community Support
Community Support

Hi @ahmedshalabyy12 ,
Thank you for reaching out to Microsoft Fabric Community Forum.

Here are some steps to help address the file size increase:

Optimize Column Expansion: Use Table.Buffer at the start of your query to avoid processing the same data multiple times. Then, use "Choose Columns" to keep only the necessary fields before expanding.
https://learn.microsoft.com/en-us/power-query/optimize-expanding-table-columns

Pre-Process the Excel File: Clean up the source file by deleting unused rows, columns, and extra formatting. Reload it into Power Query to reduce its size and make transformations more efficient.
https://learn.microsoft.com/en-us/power-platform/well-architected/performance-efficiency/optimize-da...

Avoid Data Model and Split Queries: Load the data as "Connection Only" to prevent issues with compression. If your query has many steps, consider splitting it into smaller queries to better manage memory and minimize size increases.
https://learn.microsoft.com/en-us/powerquery-m/table-distinct
Try these steps in Power Query Editor to help identify the cause and improve performance.


Thank you.

Royel
Responsive Resident
Responsive Resident

Hi, @ahmedshalabyy12 

Excel files don't support query folding, which means transformations cannot be pushed back to the data source. So, each transformation step requires Power Query to reload the entire dataset from Excel, process it in memory, then apply the next transformation. That's why you are experiencing more memory usage than the actual size. 

 

Some helpful articles from Microsoft Learn: 

1.  Query evaluation and query folding in Power Query

2. Why does my query run multiple times?

If it helps ✔ Give a Kudo • Mark as Solution – help others too!

selimovd
Super User
Super User

Hey @ahmedshalabyy12 ,

 

Chris Webb had a great article/video a few years ago why data sources are being loaded multiple times:

Chris Webb's BI Blog: Why Does Power BI Query My Data Source More Than Once?

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Connect with me: LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.