Profile and Clean Data: Types, Nulls, Duplicates and Locale
Understand it in simple language
Power Query records transformations as Applied Steps. Profiling shows validity, distinct values and distribution; switch profiling from the preview to the entire dataset when needed. Null is missing, while zero is a value. Replacing missing costs with zero can inflate profit.
Remove duplicates using a business key, not a guessed column. In this dataset OrderLineID identifies a line. Region contains extra spaces on one row. Set OrderDate to Date, Quantity to Whole Number, and prices/costs to Fixed Decimal Number where appropriate.
Do it step by step
Import Sales.csv > Transform Data. Select OrderLineID > Remove Rows > Remove Duplicates. Select Region > Transform > Format > Trim. Set data types, using Change Type > Using Locale if necessary. Check Column quality and keep an exception query for rejected rows. Close & Apply. Browser lab: Clean the sales extract.
Check your result
There should be four clean rows and no blank region. Keep the original five-row file unchanged so cleaning is repeatable.
If something goes wrong
Do not delete errors blindly. Open the error details, inspect the source value and fix the rule or send the row to an exception table.
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 · 25 min
Clean the sales extract
Guided browser practice with visible data, checked actions and expected results. Repeat the linked tutorial in Power BI Desktop.
Virtual lab · Microsoft Power BI · 35 min
Profile an 18,060-row dirty sales extract
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.
Virtual lab · Microsoft Power BI · 50 min
Clean, quarantine and reconcile an industry extract
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.
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.