Power QueryExercises

Replace conversion errors with a different value per column (garden centre)

After typing, bad Discount values should become 0 and bad Price values null. One step can do both.

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

About this exercise

What you'll practise

Apply column-specific error replacements that encode business rules.

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

  • PriceFile (file)
    • Text file; first line: SKU,Price,Discount
    • Every field is text until you set types

Expected output columns

SKU (text), Price (number (some rows null)), Discount (number)