Power QueryExercises

Flatten nested JSON orders into one row per line (marketplace)

Parse the JSON, expand the customer object and the list of order lines into a flat table.

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

About this exercise

What you'll practise

Turn nested JSON into a flat table by expanding records and lists in the right order.

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

  • OrdersJson (file)
    • JSON document (parse with Json.Document)

Expected output columns

id (text), name (text), city (text), sku (text), qty (number)