Clean every column name, including future ones (timesheet)
Trim and capitalise all column headers with one dynamic step instead of renaming each column by hand.
- Level
- intermediate
- Time
- ~9 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Use Table.TransformColumnNames so renaming rules apply to columns that don't exist yet.
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
- Export (table)
- employee: text
- WEEK : number
- project: text
- MON hours: number
- tue HOURS : number
Expected output columns
Employee (text), Week (number), Project (text), Mon Hours (number), Tue Hours (number)