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! Request now

Reply
Anonymous
Not applicable

Combining SharePoint CSV File - Not Properly Merging

The goal is to have weekly sent CSV file loaded into SharePoint and with automated refresh data model. As I receive the raw CSV files, they come already comma delimited. There are instances where the cleansing is needed so that is done within the file and Text to Column delimited by comma to complete for each file. Each file has all of the same column headers, all file types are same, and all Text to Columns delimited by comma have been done within CSV file prior to loading PBIX. Each file tab + name is different because it is saved into SharePoint by date (ex: 20241018.SharePoint_Data / 20241023.SharePoint_Data). Below is a function should help me merge the files together but is resulting in the current output. 

 

 

= Table.TransformColumns(#"Filtered Rows",{"Content", each Table.PromoteHeaders(Csv.Document(_))})

 

 

Current Output = Please see screenshot. Notice Lines #39 / 40 / 41 vs #42 / 43 / 44

Expected Output = Both files should merge together and look like lines #42 / 43 / 44

 

Your advice is greatly appreciated. 

 

The goal is to have all rows like #42 / 43 /  44The goal is to have all rows like #42 / 43 / 44

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@lbendlin thank you for your advice and support. After alot of trial and error, I changed the SharePoint function from "SharePoint.Files()" >> to "SharePoint.Contents()". Once that was completed, combining the Binary contents together resulted in the expected output. 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

You need to "Ignore quoted line breaks"  when you ingest the CSVs

Anonymous
Not applicable

@lbendlin thank you for your advice and support. After alot of trial and error, I changed the SharePoint function from "SharePoint.Files()" >> to "SharePoint.Contents()". Once that was completed, combining the Binary contents together resulted in the expected output. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Solution Authors
Top Kudoed Authors