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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
OKgo
Advocate II
Advocate II

Merging CSV files beneath each other with no matching columns

The windows run command has a wonderful way to stick together multiple CSV files.

http://www.tomnash.eu/how-to-combine-multiple-csv-files-into-one-using-cmd

 

Is there any way to mimic this in PowerBi? The merge and append features (to me) appear to require matching columns. My CSV files have no matching columns.

 

File1.csv

HeaderRow1 + 100 rows

 

File2.csv

HeaderRow2 + 50 rows

 

Merge.csv

HeaderRow1 + 100 rows + HeaderRow2 + 50 rows (252 rows total)

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@OKgo,

 

You may use Append Queries (Table.Combine) in Query Editor or UNION Function in DAX.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft Thank you for commenting.

 

I am afriad my data does not meet this requiremetn for Table.Combine "The tables must all have the same row type structure"

 

Nor "The two tables must have the same number of columns" for the DAX solution.

 

Here is a screen shot of 4 CSVs pasted together. Colmn A denotes which CSV they came from. They have no columns in common.

 

merge.PNG

 

 

Bump!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.