Locked lesson.
About this lesson
This lesson will teach you how to unleash the magic of appending all files in a folder, and show you how effective it is.
Exercise files
Download this lesson’s related exercise files. You can download source data files for the course from the resources section of your Lessons page.
Append all files in a folder - Application.xlsx21.4 KB Append all files in a folder - Application - Completed.xlsx
1.6 MB
Quick reference
Append All Files in a Folder - Application
A demonstration of the process for appending all files in a folder into a single query.
When to use
Use to combine binaries after setting up a FilesList query.
Instructions
Getting Started
- If you have not already created a FilesList query, DO THAT FIRST!
- Expose the Queries pane --> right click the FilesList query --> Reference
Master Query – Initial modifications
- Rename the Master query immediately to a more logical name (still referred to as Master here)
- Click the Combine Binaries button and click OK
- Wait for the four queries to be created on the left side of the window
- Delete the Changed Type step that was added to the Master query
Transform Sample modifications
- Select the Transform Sample in the queries pane on the left side of the window
- Perform any required transformations to the Transform Sample query
Master Query – Final modifications
- Select the Master query
- Modify the Removed Other Columns1 step to keep any desired file properties
- Add any additional transformation steps required to the Master query
- Set the Data Types
- Finalize the query by loading it to the desired location
Hints & tips
- Using the FilesList query avoids the file path being hard coded into the solution twice
- Using the FilesList query also makes it much easier to sort and change the file used by the Transform Sample
- To change the file used by the sample transform, re-sort the FilesList query, go to Home --> Refresh Preview. The new file will now be the one used in the Transform Sample
Lesson notes are only available for subscribers.