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
Anonymous
Not applicable

Delete an entire row if one column contains any number

I have a connection to Active Directory and I want to limit the entries to indviduals only and exclude any group and test users.  How can I exclude any row where the displayname contains an integer?

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can try the following solution.

When you filter values out of a column in the query editor, it's essentially the same as deleting them. Those values will not be loaded to your data model.6-1.PNG

 

6-2.PNG

 

6-3.PNG

 

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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

View solution in original post

8 REPLIES 8
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can try the following solution.

When you filter values out of a column in the query editor, it's essentially the same as deleting them. Those values will not be loaded to your data model.6-1.PNG

 

6-2.PNG

 

6-3.PNG

 

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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

i am getting error while loading query data. I checked the data and found that there are 2 rows where there are numbers. Is there any way we can filter out >=0 in power query. Right now i am not getting numeric filter options, only text filters are avilable in the drop down menu. Even if i select curent numeric static values in filter it will not work if other number pops up in future. Actually I am using files from folder. Looking for dynamic solution. please suggest. Thanks in advance. 

 

amol0512_0-1637843134315.png

 

tex628
Community Champion
Community Champion

Do you want to delete them in power query or remove them with filters in report view?

 


Connect on LinkedIn
Anonymous
Not applicable

I don't mind.  I would prefer to exclude them in Power Query and not bring them in at all but if that can't be done then filter them out in report view.

tex628
Community Champion
Community Champion

You you create a duplicate of the column you can then do a "Split column by non digit to digit".

This will split all the rows and you will be able to identify exactly which rows have a combination of characters and numbers.

image.png
image.png
The rows that do not have numbers should return null which means that you should keep them. 


Connect on LinkedIn
tex628
Community Champion
Community Champion

image.png


Connect on LinkedIn
Anonymous
Not applicable

Thanks, I did consider this but I was hoping to find a more elegant solution. 

tex628
Community Champion
Community Champion

I think thats the most friendly solution that I can think of! Otherwise i believe you need to iterate through the characters with a custom column.


Connect on LinkedIn

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.