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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors