Power QueryExercises

Align column types before appending (bookshop)

Shop sales come from a CSV (Amount is text); online sales come from a table (Amount is a number). Make Amount numeric for both.

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

About this exercise

What you'll practise

Fix mixed input types so an appended column has one type.

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

  • ShopFile (file)
    • Text file; first line: Ref,Amount
    • Every field is text until you set types
  • OnlineSales (table)
    • Ref: text
    • Amount: number

Expected output columns

Ref (text), Amount (number)