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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Removing columns from text import with Power Query, does Power BI have to read all columns first?

Hi folks,

 

If you import a csv in Power BI, then in Power Query select to remove columns, does Power BI have to read all the columns first as it processes the file, and then remove them?

 

This is a question because I've got users consuming on-prem files with 5M+ rows/20+ columns.  They only need 5 of the columns for example.  When I publish the report to the Power BI service and then schedule the refresh I'm guessing my Power BI Gateway is having to read all the columns from the file, then delimit it, then remove the unused as requested in the Power BI step.  That puts additional load on the gateway (?).  If the data was in a SQL Server database then we could just restrict the columns at the database level via the SELECT list and/or Power BI would do it via query folding if we didn't directly specify the SQL statement for the import.

 

Any input is appreciated

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

To speed up performance of power query, please refer to:

Speeding up power query

Table.Buffer for cashing intermediate query results or how workaround Unnecessary Queries Issue

Performance Tip for Power BI; Enable Load Sucks Memory Up

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

i think that when the data source is a file there is no way to speed up. So no query folding etc. 

Do you any other transforming on the data like Table.AddColumn etc?

If yes, then try to put Table.Buffer around your 2nd step

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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