Forum Discussion
mohowzeh
3 years agoRegular Visitor
Combine Files button does not work for valid Excel files in Power BI
Hi, I have a SharePoint folder with two Excel files called 'File 1.xlsx' and 'File 2.xlsx'. The folder contains no other files of any type, and it contains no hidden files. In Power BI, w...
nickvanmaele
3 years agoAdvocate II
I have the exact same problem and solved it by following the steps explained by Wynn Baum in this YouTube video and summarised below:
- create a normal query which reads and transforms the first file,
- turn the filename of the first file into a parameter and insert the parameter into the query
- turn the query into a function
- then create a new query which has one column showing the list of Excel files in the appropriate folder
- to this list of Excel files, add a new column via "Invoke Custom Function" and choose the created function
- expand the column to reveal all data of all files
That worked like a charm.
In essence, you manually re-create what the "Combine Files" button is doing automatically.