Power QueryExercises

Replace a hand-typed list of IDs with a rule (bike rental)

The query removes cancelled orders by listing this week's cancelled OrderIDs. Make it work every week.

Level
intermediate
Time
~6 min
Task
Fix a broken query
Access
Pro
Checking your access…

About this exercise

What you'll practise

Recognise steps that only work for today's data and replace them with a rule based on the data.

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

  • Orders (table)
    • OrderID: text
    • Customer: text
    • Region: text
    • Product: text
    • Qty: number
    • UnitPrice: number
    • OrderDate: text
    • Status: text

Expected output columns

OrderID (text), Customer (text), Region (text), Product (text), Qty (number), UnitPrice (number), OrderDate (text), Status (text)