Skip to content
VirtualLP Virtual Learning Platform

Merge, Append, Folder Imports and Reshaping

8 min read Topic 6 of 38 2 hands-on labs

Understand it in simple language

Append stacks rows with compatible schemas, such as monthly sales files. Merge joins columns from another table using keys. Unpivot converts month columns into rows, making time analysis easier. Pivot does the reverse. A left join keeps every left row but can multiply it if the right-side key is not unique.

Do it step by step

Import Products.csv as a separate query. Confirm ProductID is unique, then merge Sales to Products on ProductID using a left outer join. Expand ProductName and Category. Confirm sales still has four clean rows. Create two monthly subsets and Append as New; compare their combined count with the original. For a folder import, use Get data > Folder > Combine & Transform and exclude hidden or unrelated files.

Check your result

An unmatched ProductID should be flagged for investigation, not silently removed with an inner join.

If something goes wrong

If revenue doubles after a merge, group the lookup by key, count rows and fix duplicate lookup keys before merging.

Practice data and learning method

Industry practice collection: downloadable retail, finance, HR and operations datasets, dictionaries, full walkthroughs and answer sheets. The cases contain multiple years, multiple related tables, deliberate data defects and known-answer checks. Progress from the small foundation files below to these cases; do not reuse the foundation totals for the larger datasets.

Download Sales.csv, Products.csv, and the dataset guide. These files contain synthetic training data, not real customers. Use the Power BI virtual labs for guided browser practice. Each lab states its supported operations. Then repeat the procedure above in the actual Microsoft tools and save evidence of your result. Try another filter or an intentionally incorrect setting and explain what changed before moving on.

Guided practicals for this topic

Virtual lab · Microsoft Power BI · 35 min

Combine 36 monthly CSV files

Hands-on retail case: load the downloadable CSV tables, perform the actions, inspect the full-data result and reconcile it. Includes a paired Desktop procedure.

Open lab

Virtual lab · Microsoft Power BI · 35 min

Left merge products without multiplying sales

Hands-on retail case: load the downloadable CSV tables, perform the actions, inspect the full-data result and reconcile it. Includes a paired Desktop procedure.

Open lab

Continue learning from Microsoft

Power BI documentation · DAX reference · Power Query M reference · Power BI analyst skills map. Features, licensing, menus and availability can change; check the relevant official page for your environment.

Practise this topic

Hands-on virtual labs

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.