Forum Discussion
PowerQuery - load first 10 rows of every excel sheet from multiple files
- 1 year ago
yes, in addition to enumerating the files you also need enumerate all the sheets in each file. First create a list of all files and their sheets and then use a custom column to select the top 10 rows from each of the elements in the list. Then expand that custom column.
- 1 year ago
Hello, TSlowik ,
here's a complete solution.Just fill the parameters and then in query "Files" change first step to Sharepoint.Files, or keep it and test it for local files.
Here's link for my file:
first10RowsForEachSheetEachFile.pbixquick steps:
- create sample file operation
- get file
- select first 10 rows
- do that for each sheet
- get all files
- call function for all files
- expand it
- create sample file operation
Hello, TSlowik ,
here's a complete solution.
Just fill the parameters and then in query "Files" change first step to Sharepoint.Files, or keep it and test it for local files.
Here's link for my file:
first10RowsForEachSheetEachFile.pbix
quick steps:
- create sample file operation
- get file
- select first 10 rows
- do that for each sheet
- get all files
- call function for all files
- expand it