Power QueryExercises

Replace bad quantities with null and flag them (bakery)

Keep every order, but turn unreadable quantities into null and add a Needs Review flag.

Level
intermediate
Time
~8 min
Task
Build the query
Access
Pro
Checking your access…

About this exercise

What you'll practise

Replace cell errors with a value and keep the rows for follow-up.

The scenario, sample data, step list, hints and solution open with Pro. Grading checks your query against hidden data as well as the visible sample, so a query that only fits the sample doesn't pass.

Input

  • OrderFile (file)
    • Text file; first line: OrderID,Customer,Qty,UnitPrice
    • Every field is text until you set types

Expected output columns

OrderID (text), Customer (text), Qty (number (some rows null)), UnitPrice (number), Needs Review (logical)