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
patri0t82
Post Patron
Post Patron

Split column by comma - not followed by a space

Hello, this post is very similar to this post: https://community.fabric.microsoft.com/t5/Power-Query/Split-column-by-delimeter-not-followed-by-a-sp... . I'm not sure how to incorporate the solution though.

 

In a nutshell, there are some commas incorrectly mapped in my CSVs that are followed by spaces. 

 

I'm importing a SharePoint folder full of CSVs, which is already splitting the bad data by comma, creating the misaligned columns. I need to ignore commas followed by spaces BEFORE the data is imported.

1 ACCEPTED SOLUTION
patri0t82
Post Patron
Post Patron

Ah, okay I figured out a solution. I imported the CSVs into Power Query as one single column without splitting. I then replaced the value ", " with "" (nothing), then split by comma, and it worked just fine.

View solution in original post

1 REPLY 1
patri0t82
Post Patron
Post Patron

Ah, okay I figured out a solution. I imported the CSVs into Power Query as one single column without splitting. I then replaced the value ", " with "" (nothing), then split by comma, and it worked just fine.

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 Kudoed Authors