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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
smpa01
Super User
Super User

Power BI to look in each Excel files in a folder to see if particular columns exist prior combining

Hi,

 

Is it possible for PBI when connected to a Local Drive Folder to look into each of the excel files contained within the folder to see whether each of those excel files contain ceratin columns specified by me.

 

e.g. I have a folder called "Test" in My Documents and I have been saving some excel files in that folder for example, 1.xlsx; 2.xlsx; 3.xlsx. Is it possible for PBI to see if each of those files has columns called "ID","Name" and "CIty" which may or may not exist within those files. The files which contain all 3 columns , I am only intrested in combing the contenets off those files.

 

Is there a way to acheive this?

Thank you in advance.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Maybe via a Combine Binaries (Folder) query. If you selected the columns that you want in your sample file as your first step (getting rid of all other columns) then it might work.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Maybe via a Combine Binaries (Folder) query. If you selected the columns that you want in your sample file as your first step (getting rid of all other columns) then it might work.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Decklerthanks it worked.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Cool, I really didn't give that much of a chance of working!



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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