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
hxkresl
Advocate III
Advocate III

rowcount during CSV import truncated - using Power BI Desktop

using powershell i verified rowcount of source csv file : 1068606

 

 

after import (Get Data>csv)  I check row count using query editor>transform tab>count rows feature and get 946,677.  I double check this by creating a measure with function countrows(), and get 947K

 

how to capture all rows on import???

5 REPLIES 5
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @hxkresl


Could you please save the CSV file into txt format or Excel format, then connect to it from Power BI Desktop and check the result?


Thanks,
Lydia Zhang

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

Since the data is too large for  a single excel file and getdata/folder option has been problematic for me, I have uploaded them seperately.  Sum of rows imported between three files (198,103, 657,844, and 212,657) is 1,068,604.  

 

But this is not solution, as I need all data imported together.  Reason for csv file is that I was able to pipe these three files into one csv using command line.

 

I would like to be able to import either the csv file with all rows or figure out how getdata/folder works, but I must be able to import all rows at once (SQL query not option). Is there some limitation with csv?  

Hi @hxkresl,

According to my knowledge, there is no limitation for CSV file in Power BI Desktop. What is the problem when you use Get Data->File->Folder entry to import all excel files to Power BI Desktop? You can review the deatiled steps in this similar blog.

In addition, when you save the CSV file into Text format, and use Get Data->File->Text entry to import data, what is the result?

Thanks,
Lydia Zhang

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

I am able to use GetData/Folder method for a collection of csv files and get correct rowcount.   This is good.

 

Seems I am only having trouble with GetData/Folder method for a collection of excel files and with importing a single csv file having 1,068,604 rows.  For the present task am satisfied, but am very much worried for the day the client requirement is to consume excel workbook files or large csv files.  

Can we look deeper at the issue of the combined excel files and large csv file import?

Hi @hxkresl,

What is the problem when you import multiple excel file to Power BI? Also would you mind sharing me the CSV file so that I can test?

Thanks,
Lydia Zhang

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

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.