Power QueryExercises

Predict how many rows each order becomes after a merge (bike rental)

Before merging Orders with Shipments (left outer) and expanding, predict the number of rows per order.

Level
intermediate
Time
~9 min
Task
Predict a step's result
Access
Pro
Checking your access…

About this exercise

What you'll practise

Predict the cardinality of a one-to-many left outer join.

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
  • Shipments (table)
    • ShipID: text
    • OrderID: text

Expected output columns

OrderID (text), Rows (number)