cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DataSundowner
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! 

2 REPLIES 2
DataSundowner
Helper I
Helper I

@amitchandak Thank you for your reply. I found out the following post and it met my needs. 
https://stackoverflow.com/questions/57775536/power-query-how-to-delete-duplicate-characters-from-a-s...

amitchandak
Super User
Super User

@DataSundowner , does correct values have some pattern?


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



Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Learn Power BI P&L Statement || Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s ||
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

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

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.