Module 02 · Transform data (Power Query)
Clean & shape data
Remove, filter, retype and fix values — the everyday moves.
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.
Click a number on the picture or in this list to highlight that area.
Step by step
-
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.
-
Step 2: Click the filter arrow on the Region column, untick (null), then click OK to drop the rows with a blank region.
-
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.
-
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. -
Step 5: Click Close & Apply to push the cleaned table back into the model.