Power QueryExercises

Summarise each customer's orders without multiplying rows (printer)

Join customers to their orders but keep one row per customer, with the number of orders and total quantity.

Level
advanced
Time
~11 min
Task
Build the query
Access
Pro
Checking your access…

About this exercise

What you'll practise

Aggregate the nested table from a merge instead of expanding it.

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

  • Customers (table)
    • CustomerID: text
    • Name: text
  • Orders (table)
    • OrderID: text
    • CustomerID: text
    • Qty: number

Expected output columns

CustomerID (text), Name (text), Orders (number), Total Qty (number)