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
Yasser92
Frequent Visitor

Combine 2 files with different format

Hi!

 

I am looking for a solution to below problem and would highly appreciate

the solution to this.

Is it possible to combine two excel's files with different format. 

 

For example : 

File 1 : 

 

 ABC
1Order NLine NDelivery Date
2L12115/01/2017
3L12717/02/2017
4L13102/03/2017
5L14220/03/2017
6L15419/05/2017
7L15501/02/2017
8L14301/02/2017
9L20108/08/2017

 

 

File 2 

 

 ABCD
1Order NLine NDeadline Delivery Date
2L12120/08/201721/08/2017
3L12715/08/201722/08/2017
4L13122/08/201723/08/2017
5L14321/08/201724/08/2017
6L11223/08/201725/08/2017
7L154  
8L15519/08/201724/08/2017
9L14519/08/201724/08/2017
10L12  
11L21230/07/201701/08/2017
12L301  
13L12123/08/201724/08/2017

 

 

And after combinining, have a table result : 

 

Order NLine NDelivery Date
L12115/01/2017
L12717/02/2017
L13102/03/2017
L14220/03/2017
L15419/05/2017
L15501/02/2017
L14301/02/2017
L20108/08/2017
L12121/08/2017
L12722/08/2017
L13123/08/2017
L14324/08/2017
L11225/08/2017
L154 
L15524/08/2017
L14524/08/2017
L12 
L21201/08/2017
L301 
L12124/08/2017

 

 

I have more than 20 files with two or tree format.

Thank you

1 ACCEPTED SOLUTION
Thejeswar
Resident Rockstar
Resident Rockstar

Hi @Yasser92,

Yes you can combine these files. I think you will be using Append/ Merge Queries for the same as per your need.

 

One take is, when you combine these data sets, you can remove the unwanted columns and combine the data sets. In case if there is a file that has an additional column, that column also will get appended while all the records who don't have that information will be null

View solution in original post

5 REPLIES 5
Thejeswar
Resident Rockstar
Resident Rockstar

Hi @Yasser92,

Yes you can combine these files. I think you will be using Append/ Merge Queries for the same as per your need.

 

One take is, when you combine these data sets, you can remove the unwanted columns and combine the data sets. In case if there is a file that has an additional column, that column also will get appended while all the records who don't have that information will be null

Thank You lot @Thejeswar,

 

Do you think that Append Merge will be useful in my case even if I have more than 20 excel's data sheets

Hi,

Suppose you have 20 different files in your DB and you want them to make 1 data set, then the only option is UNION or UNION ALL

 

Similarly, as far as I know, appending the data sets in Power BI is the way to go as it is the equivalent of SQL Union in Power BI

Greg_Deckler
Super User
Super User

Are you using the Combine Binaries (folder query)?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank you for the response.

 

Yes, I'm using a file as a source

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.