Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

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