Power QueryExercises

Interview task: month-over-month revenue change (kite shop)

Total revenue per month, then show the change from the previous month (null for the first month), in month order.

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

About this exercise

What you'll practise

Reference the previous row safely with an index and a self-merge (or positional list access).

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

Month (text), Revenue (number), Change (number (some rows null))