Power QueryExercises

Fix a query that names columns by position (bike rental)

The starter skips the header line and renames Column1…Column4. When the export's column order changes, values land in the wrong columns.

Level
intermediate
Time
~9 min
Task
Fix a broken query
Access
Pro
Checking your access…

About this exercise

What you'll practise

Rely on the file's own header row instead of column positions.

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

  • OrderFile (file)
    • Text file; first line: OrderID,Customer,Qty,UnitPrice
    • Every field is text until you set types

Expected output columns

OrderID (text), Customer (text), Qty (number), UnitPrice (number)