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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
benck
New Member

Large amount of CSV files into one table in Power BI

I have a large amount of CSV files, and I would like to process them into one table with each row representing one CSV file.

For example, Trip001.csv:

截圖 2023-12-20 上午9.25.47.png

Trip002.csv:

截圖 2023-12-20 上午9.26.30.png

 

 I want to get [count the number of "FALSE" rows before the first apperance of "TRUE", with SPEED < 15.0] for each csv file. And the final result in Power BI should be like:

截圖 2023-12-20 上午9.30.41.png

 

I know that it may be easier to process those CSV files using other language like Python before importing to Power BI. However, is it possible to do this in Power BI? Thanks.

1 REPLY 1
lbendlin
Super User
Super User

This is very easy to do in Power Query, but it may be costly as you need to read each CSV file before you can compute the desired number of rows.  You can try some shortcuts like  Binary.Buffer/Table.Buffer and GroupKind.Local

 

Please provide your sample data in usable format, not a a screenshot.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Kudoed Authors