Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Convert a Pattern of Bad Data to Null

Hi everyone. I have a column contains a bunch of bad entries such as "000000", "1111", "00000000000", "2222222" etc. Basically, it's a string with repetitive digits, and length of the string is not specific. How can I efficiently convert this kind of pattern to nulls in Power Query? Thank you! 

Helper I
Helper I

@amitchandak Thank you for your reply. I found out the following post and it met my needs.

Super User
Super User

@DataSundowner , does correct values have some pattern?

Can you share sample data and sample output in table format?

Features || Datamarts: || Field Parameters :
Learn Power BI P&L Statement || Time Intelligence Decoded : ||
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!!! How to get Quick Help !!
Resources | Master Power BI !! Expertise Power BI !! Power BI For Tableau User !!

Helpful resources

November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.