Power QueryExercises

Sort tickets by business priority, not alphabetically (saas)

Sort Urgent, High, Medium, Low (in that order), then oldest first within each priority.

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

About this exercise

What you'll practise

Sort by a custom order using a rank from a list.

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

  • Tickets (table)
    • TicketID: text
    • Opened: text
    • Closed: text (nullable)
    • Priority: text
    • Channel: text
    • Agent: text
    • Topic: text

Expected output columns

TicketID (text), Opened (text), Closed (text (some rows null)), Priority (text), Channel (text), Agent (text), Topic (text)