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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
T-Pan
Helper I
Helper I

Get data from Folder, but excels with different column headers

Hello everyone,

 

Every week i update an power bi report with excel files which i receive from the data department. So i dicided to try to import the data from "Folder". The excel files have the same number of columns but in every excel file the first column header is always different in every excel file. So when i try to combine the excels it takes as headers of new table the column headers of first Excel an not show the values of this column from the other excels, instead it shows "null".

 

I have found several videos in youtube about combine excels from same folder with different number of columns but not something about my issue.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @T-Pan ,

Please try this way.
I will show you my sample data first:

vjunyantmsft_0-1703817724244.png

 

vjunyantmsft_1-1703817733334.png


Then, I do the append query first:

vjunyantmsft_2-1703817779722.png

 

vjunyantmsft_3-1703817803100.png


The results are as follows:

vjunyantmsft_4-1703817817242.png

Then do a column merge:
Click both column "Date_2023" and column "Date_2024":

vjunyantmsft_5-1703818014219.png

vjunyantmsft_6-1703818088253.png

The final results are as follows:

vjunyantmsft_7-1703818116947.png


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

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @T-Pan ,

Please try this way.
I will show you my sample data first:

vjunyantmsft_0-1703817724244.png

 

vjunyantmsft_1-1703817733334.png


Then, I do the append query first:

vjunyantmsft_2-1703817779722.png

 

vjunyantmsft_3-1703817803100.png


The results are as follows:

vjunyantmsft_4-1703817817242.png

Then do a column merge:
Click both column "Date_2023" and column "Date_2024":

vjunyantmsft_5-1703818014219.png

vjunyantmsft_6-1703818088253.png

The final results are as follows:

vjunyantmsft_7-1703818116947.png


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

 

Also i want to ask if there is any similar way to get data from Folder, but a folder which located in Sharepoint, so every time i enter a file automatically append in my table?

Thank you very much. Your solution is what i was looking for. 

spinfuzer
Solution Sage
Solution Sage

Maybe in the Transform Sample File Use Headers as First Row (or whatever you need to do in order to make the first row(s) the same).  Then in your main query (where all the files are combined) fix the headers from there.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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