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! Learn more

Reply
Anonymous
Not applicable

Split file based on row content

I've got a csv file I'm importing into desktop. I've got multiple rows per student and rather than splitting the report coming from the MIS for each school I wondered if there was an easy way to split all the rows with TP Year 1 for example into another table, keeping all the other rows?

 

Keeping top / bottom X rows wouldn't work as the file increases in size throughout the year.

 

aguest1005_0-1619097726869.png

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

In Power Query Editor, right click the table in Queries and select Duplicate to make a copy of the table. 

042702.jpg

Then in the new query, expand the down arrow and select the text values to filter the rows.

042703.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

In Power Query Editor, right click the table in Queries and select Duplicate to make a copy of the table. 

042702.jpg

Then in the new query, expand the down arrow and select the text values to filter the rows.

042703.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

amitchandak
Super User
Super User

@Anonymous , In power query, create a copy of table and filter the table based on text search and save.

 

In dax create a new table

CALCULATABLE(Table, filter(Table, search("TP Year 1 ",Table[resultset],,0) >0))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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