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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
dngilliam
New Member

How to build one Power BI dashboard from multiple Excel workbooth with DIFFERENT data structures

Hello,

I have multiple Excel workbooks that are not identical to each other. Each workbook tracks a different set of data by different team members. However, as a team leader, I want the ability to pull their data together and display one dashboard that is segmented into their respective projects/duties.

I saved each Excel workbook file in SharePoint Online hoping to build a query in Power BI to pull that data. It worked for the first workbook file, but when I added other workbooks, I received errors after the 'invoke custom function' feature because the column headers/data structure varied.

So far, I've only come across articles and videos of loading multiple Excel workbooks that have identical data structures. I want to feed each Excel workbook of data from each team member into Power BI and display a one-paged dashboard. Ideally, each team member would update their monthly data into their respective Excel workbook and I can refresh Power BI to generate a report for the current month.

Is this possible? If so, are there multiple options to achieve this? I'm using a government-licensed edition of Power BI Desktop so there's also a chance that I don't have the full functionality of the tool yet.

1 ACCEPTED SOLUTION

Hi @dngilliam 

We see that your operation is failed because of errors reported due to column headings/data structures varied.

To solve this problem, you may follow the steps in the following article: Merge Files With Different Column Headers

This article explains what happens when we try to merge files with different column headings.

 

For further more, please see if these articles can help you: Import Multiple Files Containing Multiple Sheets with Power Query

Also, here is a YouTube video here that may be able to help you .

Hope it helps,

 

Caitlyn Yan

 

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

5 REPLIES 5
richbenmintz
Solution Sage
Solution Sage

Hi @dngilliam ,

 

Are you adding each file as seperate tables or are you trying to import them all with the same query?

I would suggest importing each file as a query, transform the data into a conformed schema then append the queries together.

 

Hope that helps



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Hi @richbenmintz ,

 

I tried to import them with the same query but of course received an error message because each file had different column headers. So, I assumed that I could copy the orginal query and modify the filename and a few minor elements in the code, but it  failed and that's where I'm stuck.

 

Is there a clear article/video that can walk me through those steps? I'm very new to Power BI.

Hi @dngilliam 

We see that your operation is failed because of errors reported due to column headings/data structures varied.

To solve this problem, you may follow the steps in the following article: Merge Files With Different Column Headers

This article explains what happens when we try to merge files with different column headings.

 

For further more, please see if these articles can help you: Import Multiple Files Containing Multiple Sheets with Power Query

Also, here is a YouTube video here that may be able to help you .

Hope it helps,

 

Caitlyn Yan

 

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

PaulDBrown
Community Champion
Community Champion

if the structure of the columns is not the same, you can import them individually, change the column headers in Power Query and finally append the tables to create a single fact table





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PC2790
Community Champion
Community Champion

It would be better if all the excel files have the same structure.

That way you will be able to combine all of them using a single custom function.

To maintain uniformity, you can create a single excel, limiting the fields by putting proper validation so that your team doesn't hamper with the structure of the report.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.