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
divumj
Helper I
Helper I

Data filtering and deleting basis tect

GM All

 

I am looking for a solution where I would like to find specific text in one column that to first occurence as I have multiple values in same column.

 

Once it identified we need to delete all the data above that. For e.g. I am looking for text having abc and I have first occurence on row 5000 having field 123abc.

 

 

1 ACCEPTED SOLUTION
6 REPLIES 6
divumj
Helper I
Helper I

@AlienSx 

 

This will remove entire data... requirment is to find it and remove all data above that , that to for first occurence...

 

As my data had multiple text having that data and we don't want to remove all data...only for the first one from the top

@AlienSx not able to apply that...could you please gave me excel working examples...ask is that first need to check the first occurence for text with contain function and then delete the above all data only...

Read this article with lots of examples. 

@AlienSx Thanks I got the issue and it did worked...many many thanks 

AlienSx
Super User
Super User

Table.Skip(your_table, (x) => not Text.Contains(x[column_name], "specific_text"))

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.