Forum Discussion

VDS9's avatar
VDS9
Frequent Visitor
2 years ago

Combine files and sheets(from folder)

Hi, 

Im trying to combine data from a folder with several files and several sheets. Can you help?

Each file has a different name

Each file has the same 10 different sheets (with different names)

Each sheet has same headers

 

Whats is the most efficient and clean way to get and sort the data? I want to be able to add files to the folder and automatically get an update when refreshing the report.

 

Thanks.

Ritaf1983 Anonymous ChrisMendoza MFelix RichFlorida vdata parry2k amitchandak Idrissshatila 

1 Reply

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    let

    Source=Folder.Files(YourFolderPath),

    Custom1=Table.Combine(List.TransformMany(Source[Content],each Excel.Workbook(_)[Data],(x,y)=>Table.PromoteHeaders(y)))

    in

    Custom1