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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
DebbieE
Community Champion
Community Champion

Carriage return in Comment column is causing columns after comments to be empty

I am working with a dataflow

 

If I test the data using a specific record by filtering at the beginning of the process just after importing the data from csv and promoting headers, in Power Query editor I see this

 

nullfields.JPG

But in the File itsself looks like this

 

FromCSV.JPG

Note that its cut the comment at the carriage return and not brought though the other information for the other columns

 

When I check the comment in Notepad ++ it cuts off where the comment is added to a new line.

Is there aything I can do in Power Query Editor to fix this problem? 

 

I can see that Power BI may cut off the Comment itsself but to lose all the data after in the other columns is really odd

 

I tried the solution in https://community.powerbi.com/t5/Desktop/Replace-carriage-return-in-dataset/td-p/24900 right after importing csv but it hasn't made a difference

 

The step where the data is loaded looks like this

 

Csv.Document(#"Demo table csv_https://Customer sharepoint com/sites/DataStore/Shared Documents/General/", [Delimiter = ",", Columns = 13, Encoding = 1252, QuoteStyle = QuoteStyle.None])
 
is there anything I can do in this bit of code to help? I think its something to do with adding and changing the following?
 
QuoteStyle: Specifies how quoted line breaks are handled. QuoteStyle.None (default): All line breaks are treated as the end of the current row, even when they occur inside a quoted value. QuoteStyle.Csv: Quoted line breaks are treated as part of the data, not as the end of the current row.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DebbieE ,

Please try to update the source code as below and check if it can display normally:

Csv.Document(#"Demo table csv_https://Customer sharepoint com/sites/DataStore/Shared Documents/General/", [Delimiter = ",", Columns = 13, Encoding = 1252, QuoteStyle=QuoteStyle.Csv])

Best Regards

Rena

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @DebbieE ,

Whether this problem has been resolved?

Best Regards

Rena

Yes you can mark this as resolved

 

It turned out to be an issue before it even hit Power BI and had to be dealt with at source

 

Debbie

Anonymous
Not applicable

Hi @DebbieE ,

Please try to update the source code as below and check if it can display normally:

Csv.Document(#"Demo table csv_https://Customer sharepoint com/sites/DataStore/Shared Documents/General/", [Delimiter = ",", Columns = 13, Encoding = 1252, QuoteStyle=QuoteStyle.Csv])

Best Regards

Rena

amitchandak
Super User
Super User

@ImkeF @ can you help on this

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.