Power QueryExercises

Build a table from a JSON columns + rows payload (analytics)

A reporting API returns {columns: [...], rows: [[...], ...]}. Turn it into a table with those column names.

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

About this exercise

What you'll practise

Use the header list and row lists of a compact JSON format with Table.FromRows.

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

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

Expected output columns

page (text), views (number), visitors (number)