Power QueryExercises

Fix a nested each that compares a row with itself (kite shop)

Every order gets the same Line Qty: an inner each compares the line's OrderID with itself. Name the parameters.

Level
advanced
Time
~10 min
Task
Fix a broken query
Access
Pro
Checking your access…

About this exercise

What you'll practise

Understand that each/_ always means the innermost function, and use named parameters in nested functions.

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
  • Lines (table)
    • LineID: text
    • OrderID: text
    • Qty: number

Expected output columns

OrderID (text), Customer (text), Line Qty (number)