cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
arpitprakash
Helper I
Helper I

Filter Rows that do not contain any alphabets using M

Hello, 

I am trying to create a custom column with the following results, using Power Query - 

10.01.01Code
40.02.01.01Code
20.001.20.0001Code
ABC.DEF.GHINot Code
ABD DEFNot Code
01.ABCNot Code
nullNot Code

 

Appreciate any assistance here!

3 REPLIES 3
arpitprakash
Helper I
Helper I

I am still looking for assistance, so will really appreciate any advice here.

Thanks!

v-xiaotang
Community Support
Community Support

Hi @arpitprakash 

Thanks for reaching out to us.

One idea, you have to create a column to determine whether the column contains letters, and then filter the custom column.

 

 

Best Regards,

Community Support Team _Tang

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

Hello v-xiaotang, 

I have limited knowledge of M, so am requesting assistance with "creating a column to determine if the column contains letters".

I tried to customize this code that I found online but got the error - "cannot convert the value to type Logical."
if Text.SplitAny(Text.Lower([Name]),"abcdefghijklmnopqrstuvwxyz"){0} then "Remove" else null

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors