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
Anonymous
Not applicable

Pulling multiple files from sharepoint into one query

Hi there,

 

I have a sharepoint folder where files are deposited holding employee data. Half the data is from our US HR system, the other half is from our UK HR system. Ergo, the column names differ.

When I pull all the files into one query, Power BI does the magical 'Transform file' thing where it uses the first file as an example - so it's ignoring any columns in files which don't have the same column names.

 

Assuming I can't make Human Resources rename the fields in their system, I am stuck with different column names. I reeeeaaally don't want to pull the files in separately, rename them, and append. Because there will be new files each week to append and I want an automated process.

 

Is there any way around this? Can I ask Power BI to bring all the columns into one query, then I can do the data modelling in my applied steps? 

 

Jemma

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Why not store the files in separate folders (US & UK) and then import them using the folder option for each, adjust the "rogue" column names & transformations and finally append the separate queries into the final one?





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.






View solution in original post

3 REPLIES 3
mh2587
Super User
Super User

Get all the data from the source in different quries later merge it


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



PaulDBrown
Community Champion
Community Champion

Why not store the files in separate folders (US & UK) and then import them using the folder option for each, adjust the "rogue" column names & transformations and finally append the separate queries into the final one?





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.






Anonymous
Not applicable

Yeah I guess that was a last resort. I might have to by the lack of replies to this thread! Thanks @PaulDBrown 🙂 

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.