You are connecting to a SharePoint folder containing 100 Excel files. Each file has a similar structure but different column names. What is the best practice to combine these files into a single table while preserving the data?
Trap 1: Load each file as a separate table and create relationships in the…
This creates multiple tables, not a single combined table.
Trap 2: Use Power Query's 'Merge Queries' to join all files into one table.
Merge is for combining columns from different tables, not rows from multiple files.
Trap 3: Use 'Append Queries' to stack all files, then rename columns…
Append requires identical column names; renaming manually is error-prone.
- A
Use Power Query's 'Combine Files' feature, selecting a sample file and promoting headers, then transforming column names to a standard set.
This automates combining files with different structures.
- B
Load each file as a separate table and create relationships in the model.
Why wrong: This creates multiple tables, not a single combined table.
- C
Use Power Query's 'Merge Queries' to join all files into one table.
Why wrong: Merge is for combining columns from different tables, not rows from multiple files.
- D
Use 'Append Queries' to stack all files, then rename columns manually.
Why wrong: Append requires identical column names; renaming manually is error-prone.