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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Power Query reads All excel file rows

Hi everyone,

 

I'm struggling with how to handle importing an excel file which now has 3715 rows but when I import it using "from file" or "from folder", loads all 1'048.576 rows. Any step ahead, loads every 1'048.576 rows and working with it has been impossible.

 

Is not possible to format the data as table because this file comes every day and we want to avoid any manual transform. The idea to use Power Query is to automate this process. Take into account that every file has more data which means has more rows, but never will have a million. On worst case 10k by end of the year and then on january 2023 will be restarted.

 

Any clue how to just import the rows where it is located the data?

 

I already tried to remove empty rows, but on further steps still loads the million rows.

 

Thanks in advance

1 REPLY 1
artemus
Microsoft Employee
Microsoft Employee

You can use add a step with something like:

Table.FirstN(Source, [A] <> "")

 

where [A] would be a column, and "" would be what the blank rows are (could be null instead).

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors