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
Abdelrhman_2020
Frequent Visitor

Get Excels Files From a Folder Without Combining it

Hello,

I want to Get Excel Files from a Folder without Combining it to one table

I want to get each Sheet from the Workbooks as a Tables Seperatly

is there any

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Abdelrhman_2020 

 

Based on your description, I'd like to suggest your create a function in Power Query as below.

 

(Path as text,ExcelName as text,SheetName as text)=> 
let
    Source = Folder.Files(Path),
    PathStep = Source{[#"Folder Path"=Path,Name=ExcelName]}[Content],
    #"Imported Excel" = Excel.Workbook(PathStep),
    SheetStep = #"Imported Excel"{[Item=SheetName,Kind="Sheet"]}[Data],
    #"Promoted Headers" = Table.PromoteHeaders(SheetStep, [PromoteAllScalars=true])
in
   #"Promoted Headers"

 

 

e1.png

You may input a set of parameters and get a a corresponding query. After executing multiple times, you can get tables what you want.

 

Best Regards

Allan

 

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

Thanks for your Reply 

What should I fill in the Excel Name and Sheet Name

as i have a Several Excel Workbooks in my Folder and I have a lot of Sheets in it 

amitchandak
Super User
Super User

If they are a few, you can read and add them one by one

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.