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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
devzack
Regular Visitor

Carriage Returns when Combining multiple CSV documents

Hello, 

 

I'm working on importing multiple CSV documents from a sharepoint folder using the combine files (binaries) function. When I do this there is a carriage return in an address field that will split the row into 2 seperate rows of data. because of the structure of the data this ends up shifting all of the data over a few columns. 

 

I can completed this operation when important importing a single CSV by changing the QuoteStyle=QuoteStyle.Csv however I do not have the option for quote style CSV in the combine files statement or anywhere in the documentation. 

 

Source File

Row NumberPersonAddressCreate DateTitle
1A

123 State St

123 State St

1/1/20222Install

 

Actual Outcome

Row NumberPersonAddressCreate DateTitle
1A123 State St(null)(null)
2123 State St"1/1/2022Install(null) 

 

Intended Outcome

Row NumberPersonAddressCreate DateTitle
1A

123 State St 123 State St 

1/1/2022Install

 

 

1 REPLY 1
AlexisOlson
Super User
Super User

If you're using the combine files UI, then it likely creates some helper queries like Sample FileTransform File, and Transform Sample File. I think you should be able to add "QuoteStyle=QuoteStyle.Csv" to Transform Sample File the same way you can add it to a single CSV. That should update the Transform File function which is used in your main query that does the combining.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors