Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
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"
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
User | Count |
---|---|
84 | |
73 | |
67 | |
42 | |
35 |
User | Count |
---|---|
109 | |
56 | |
52 | |
45 | |
43 |