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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
khardu
Regular Visitor

Power Query Shuffles Data When Importing CSV

Hi Power BI Team,

 

I am having trouble when importing data from CSV in Power BI. What happens is when Power Query brings the data it populates the data from one column into another, like some values from text fields into numbers, and some from percentage field to text field. When I view the data inside the CSV, it's correct, and everything is in its own column but as soon as I import via Power Query it's all messed up. I have been importing CSVs for a long time but this is the first time happening.

 

If it helps, I have downloaded these CSVs from salesforce.

 

Any idea why it's happening and how can I fix it?

 

Thanks.

Mudasser

1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

Hi,

Have a look at 

https://docs.microsoft.com/en-us/power-query/connectors/textcsv#textcsv-delimiters

(Scroll down to "edit source" section.)

Once you set up the import if you click onto the cog next to the source step it should give you an option to ignore quoted line breaks which I think might be causing your issue.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

2 REPLIES 2
bcdobbs
Community Champion
Community Champion

Hi,

Have a look at 

https://docs.microsoft.com/en-us/power-query/connectors/textcsv#textcsv-delimiters

(Scroll down to "edit source" section.)

Once you set up the import if you click onto the cog next to the source step it should give you an option to ignore quoted line breaks which I think might be causing your issue.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Thank you 😊 

You were spot on. That fixed my issue.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.