Forum Discussion

gio1082's avatar
gio1082
Helper I
6 years ago
Solved

clean data

Hi,  I have a data that I want to clean. I want to remove data from a row if its has "DOC" (ex 10265049DOC), and if less then 7 chracters (Ex: 12MM,4, 123m33) but keep anything data that  starts wit...
  • Fowmy's avatar
    6 years ago

    gio1082 

    In Power Query, Add the below code as new Custom Column then filter by FALSE, you get as per your requirement.

     = if  Text.Start([DATA],1) = "S" then false else Text.Contains([DATA],"DOC") or Text.Length([DATA]) < 7



    ________________________

    Did I answer your question? Mark this post as a solution, this will help others!.

    Click on the Thumbs-Up icon on the right if you like this reply 🙂

    YouTube, LinkedIn