Forum Discussion
DataSundowner
Helper II
3 years agoConvert 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
- amitchandak
Super User
DataSundowner , does correct values have some pattern?
Can you share sample data and sample output in table format? - DataSundowner
Helper II
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-string-eg-xzxxxzzzzxzzz