Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DataSundowner
Helper II
Helper II

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 II
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-s...

amitchandak
Super User
Super User

@DataSundowner , does correct values have some pattern?


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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors