Power QueryExercises

Convert JSON records that don't all have the same fields (volunteers)

Some contacts have no email field and some no phone field at all. Build a table with all four columns.

Level
intermediate
Time
~8 min
Task
Build the query
Access
Pro
Checking your access…

About this exercise

What you'll practise

Turn records with optional fields into a table, filling absent fields with null.

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

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

Expected output columns

id (text), name (text), email (text (some rows null)), phone (text (some rows null))