Power Query Transforms
Advanced data shaping in Power Query — merge, append, unpivot, group, and split columns.
✅ What You Will Learn
Once you understand the basics of Power Query, the advanced transforms let you do the kind of data reshaping that previously required SQL or manual work. Merge combines two tables based on a matching column — equivalent to VLOOKUP but more powerful. Append stacks tables from multiple files — useful for combining 12 monthly files into one annual dataset. Unpivot converts wide data (months as columns) into long data (all months in one column) — the format required by Pivot Tables and charts.
These transforms run as recorded steps, so every operation is transparent, editable, and automatically re-applied on refresh. The visual interface makes these operations accessible without writing any code — though the underlying M language is visible in the Advanced Editor if you want to customise it.
Examples
📌 Key Points to Remember
- ✓Merge = JOIN (combine columns from two tables). Append = UNION (stack rows from multiple tables).
- ✓Unpivot converts column headers into row values — the opposite of a Pivot Table
- ✓Group By aggregates rows — Sum, Count, Average, Min, Max by category
- ✓Split Column (by delimiter or by position) replaces complex LEFT/MID/RIGHT formulas
- ✓All transforms are steps — delete any step to undo that transformation without starting over
🏢 Real-World Application
An HR team receives 12 separate monthly headcount files (one per month, same structure). Using Power Query Append, all 12 files are combined into one annual dataset automatically — and adding the 13th month just requires refreshing. Finance teams use Unpivot to convert budget vs. actual comparison tables (months as columns) into the long format needed for variance analysis charts.
⚠️ Common Mistakes to Avoid
❓ Frequently Asked Questions
What is the difference between Merge and Append in Power Query?
Merge combines two tables horizontally — adding columns from one table to another based on a matching key (like VLOOKUP or SQL JOIN). Append combines two tables vertically — stacking rows on top of each other (like SQL UNION ALL).
Can Power Query combine all files in a folder automatically?
Yes — Get Data → From Folder → select the folder. Power Query loads all files, applies the same transformation steps to each, and appends them into one table. New files added to the folder are included on the next Refresh.
Is there a limit to how many tables I can Append?
No practical limit. Use Append Queries → Append More Tables to combine three or more tables in one operation. Large appends may slow down refresh time depending on total row count.
✏️ Practice Exercise
Create two separate Excel tables: one with Order data (OrderID, ProductID, Amount) and one with Product master data (ProductID, ProductName, Category, Price). Load both into Power Query. Use Merge to join them on ProductID. Then create a separate query that Unpivots a monthly sales table (products as rows, months as columns) into long format. Load both results to separate sheets.
Learn Excel with Live Trainer Guidance
These tutorials give you the foundations. Our live Excel course at EVIKA Academy, Noida teaches you to build real dashboards on actual business data — with a trainer who uses Excel professionally every day.