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! Learn more

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