Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

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

  • v-xiaotang's avatar
    v-xiaotang
    Community Support

    Hi Anonymous 

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      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

  • Anonymous's avatar
    Anonymous
    Not applicable

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

    Thanks!