Office Automation — Level 3: Advanced Excel, Dashboards & Macros
Get Started Free
Free preview
Importing data with Power Query
Lecture notes
Power Query (Data → Get & Transform) imports and cleans data. Every transformation is recorded as an applied step; next month, you replace the source file and click Refresh — all the cleaning is repeated automatically.
Sources
- Excel workbooks, CSV and text files.
- A folder — combine all monthly files in one step.
- Web pages (tables), databases (SQL Server, MySQL, Access), SharePoint lists, PDF tables.
The Power Query Editor
- The preview grid in the centre.
- The Applied Steps list on the right — click a step to see the data at that point; delete or rename steps.
- The formula bar shows the M language code of each step (View → Formula Bar).
- Column headers show the data type icon (ABC text, 123 whole number, calendar date). Setting correct types is essential.
Loading results
Home → Close & Load creates a table on a new sheet. Close & Load To… offers: Table, PivotTable report, Only Create Connection, and Add this data to the Data Model.
Refreshing
Data → Refresh All (Ctrl+Alt+F5). Query properties can refresh automatically when the file opens or every N minutes.
Want to go further?
20 h · Enroll to access every lesson and earn the certificate.