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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors