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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-junyant-msft
Community Support
Community Support

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
v-junyant-msft
Community Support
Community Support

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
Super User
Super User

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors