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
twister8889
Helper V
Helper V

Combine multiple excel files with different structure columns

Hi guys,

 

I'm trying to combine some excel files with different struct columns, but I'm having a problem separating each column to a specific file, how can do I do this? I appreciate the help.

I'm using two functions:

1) by Chris Webb (https://blog.crossjoin.co.uk/2017/12/03/making-sure-all-columns-appear-when-you-combine-data-from-mu...) With this function I can update my table with all columns from my tables. Its works!

 

2) by @ImkeF to unpivot columns, Its works

 

I attached my pbix and excel file here: https://1drv.ms/u/s!AoDYwrtLrltJn1hpnlY_YJKbiVNC?e=hWy3gz

 

Basically my problem is, when I combine the excel files, I have the data from excel2 into excel1 line, in the example the CODE20 is from excel2 (Table2.xlsx) not excel1 (Table1.xlsx).

I would like to have one column with all CODES, one column with all Date1, and another column with all Date2 but each one to specific Source

 

combinetables.png

 

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi  @twister8889  ,

 

Have the issue been resolved? If Yes, could you please show us the solution to help others having the similar issue and accept it as the solution ? We will appreciate you so much, thanks.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @twister8889 ,

 

You may need to make the original data table more effective and logical, for example you may select on the columns of table in excel, right click to choose Transpose to transpose the column to row , and do some other transform in excel to let the table display like the layout of picture 2, which makes the same property values be in one single column. After transforming both two excel tables to the layout of picture2, which will have similar table structure, you may later use combine the files in a folder into a combined table, see more steps:Combine files (binaries) in Power BI Desktop.

 

Picture1 :(Table1)

188.png

Picture2(with standard table layout):

189.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.