Power QueryExercises

Read a fixed-width text report (library)

An old system writes each record as fixed-width text. Cut each line at the right positions and type the result.

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

About this exercise

What you'll practise

Split text by character positions and clean the padding that fixed-width formats add.

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

  • ReportFile (file)
    • Text file; first line: LB0001Maps of Millbrook 164
    • Every field is text until you set types

Expected output columns

Code (text), Name (text), Qty (number)