Keep only the columns a report needs (bakery)
Choose OrderID, Customer and Qty so the report stays the same shape even when the export gains new columns.
- Level
- beginner
- Time
- ~5 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Use Choose Columns (Table.SelectColumns) to keep a fixed set of columns that survives schema changes.
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
- Orders (table)
- OrderID: text
- Customer: text
- Region: text
- Product: text
- Qty: number
- UnitPrice: number
- OrderDate: text
- Status: text
Expected output columns
OrderID (text), Customer (text), Qty (number)