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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Alessandro70
Regular Visitor

Importing multiple csv files from folder

Hi,

 

i have a folders with several csv files.

I know how to import them but before i have to import only the first 5 rows of each files and after the rows from 6th to 10th

Can you help me?

 

Alessandro

1 ACCEPTED SOLUTION
v-priyankata
Community Support
Community Support

Hi @Alessandro70 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

View solution in original post

2 REPLIES 2
v-priyankata
Community Support
Community Support

Hi @Alessandro70 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

bhanu_gautam
Super User
Super User

@Alessandro70 

Import the CSV files from the folder:

Go to Home > New Source > Folder.
Select the folder containing your CSV files.
Click Combine > Combine & Load.
Filter the first 5 rows:

In the Power Query Editor, select the table containing the combined data.
Add an Index column by going to Add Column > Index Column > From 1.
Filter the rows where the Index column is less than or equal to 5.
Filter the rows from 6th to 10th:

Duplicate the query with the first 5 rows.
Change the filter to get rows where the Index column is greater than or equal to 6 and less than or equal to 10.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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