Power QueryExercises

Keep the highest reading per site and day, with its inspector (pools)

Sites are inspected several times a day. Keep only the row with the highest reading for each site and day.

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

About this exercise

What you'll practise

Select one row per composite key by value, keeping the row's other columns.

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

  • Readings (table)
    • Site: text
    • Day: text
    • Reading: number
    • Inspector: text

Expected output columns

Site (text), Day (text), Reading (number), Inspector (text)