Module 02 · Transform data (Power Query)

Clean & shape data

Remove, filter, retype and fix values — the everyday moves.

Step by step9 minLesson 7 of 21 Free

Power BI & Tableau practice fileSales, Product and Region tables, plus July & August data for the append/union exercise. Used in every module of the Power BI and Tableau courses.Excel · ~1,200 rows · free Download

Real data is almost always messy, and the practice file is messy on purpose: unused columns, blank regions, a lowercase "jakarta" and a "Bandung " with a trailing space. We fix them one by one in the Sales table.

Illustration of the Sales table preview in Power Query: the Notes and InternalCode columns selected with the Remove Columns menu, the Region filter menu with (null) unticked, and the data type icon on the Date column. Zoom
Three fixes in one view: drop columns, drop blank rows, change a data type.

Click a number on the picture or in this list to highlight that area.

Step by step

  1. Step 1: Select the columns you don’t need (in the practice file: Notes and InternalCode; hold Ctrl to pick both) → right-click → Remove Columns.

  2. Step 2: Click the filter arrow on the Region column, untick (null), then click OK to drop the rows with a blank region.

  3. Step 3: Set data types with the icon to the left of each column name. Example: the Date column still holds a time (12:00:00 AM), so click its icon and choose Date.

    Watch out: Wrong types break everything downstream — money stored as text won’t sum. Fix types early.

  4. Step 4: Use Replace Values (right-click the Region column) to fix typos (for example jakarta → Jakarta), and Transform → Format → Trim to remove extra spaces.

  5. Step 5: Click Close & Apply to push the cleaned table back into the model.