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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Judsonteacher
Regular Visitor

Power Query .csv Cells Have Multiple Lines Delimits Imported Data Thereby Misaligning Columns

Hi,

 

I am using Power Query (from web, Sharepoint link) to import some data from a single .csv which has some cells with multiple lines.  I don't need to manipulate those cells, but the imported data is misaligned after importing.

 

For example: Here is the data from the .CSV (you can see it's in the notes column)

 

Judsonteacher_0-1660703228348.png

 

 

But after importing the data, what I guess is happening is the multiple lines is being delimited into subsequent columns which makes everything after this entry in the wrong column.  

 

You can see now the data from "Notes" is under "Staff: Center"

Judsonteacher_1-1660703326396.png

 

I have not done any transformations.  I have tried re-exporting the raw data multiple times, relinking the file, deleting and building it over again multiple times, all to no avail.

 

Any suggestions how to fix?

1 ACCEPTED SOLUTION
Judsonteacher
Regular Visitor

I fixed the problem by setting the Query Source option about "Line Breaks" to "ignore quoted line breaks"

View solution in original post

2 REPLIES 2
Judsonteacher
Regular Visitor

I fixed the problem by setting the Query Source option about "Line Breaks" to "ignore quoted line breaks"

jbwtp
Memorable Member
Memorable Member

Hi @Judsonteacher,

 

Do you mind having a read of this: https://blog.crossjoin.co.uk/2018/03/09/an-in-depth-look-at-the-csv-document-m-function/ ? I think the issue that you have may relate to how the CSV.Document imports your data and Chris in his blog has a realy deep dive into how this function can be configured with various settings.

 

Hope this will help.

 

Kind regards,

John 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors