Office Automation — Level 3: Advanced Excel, Dashboards & Macros
Free preview

Importing data with Power Query

1 / 3

Get & Transform

  • Data → Get Data
  • From file, folder, web, database
  • Power Query Editor
2 / 3

Applied steps

  • Every action is recorded
  • Refresh replays the steps
  • No more copy-paste
3 / 3

Load

  • Close & Load to table
  • Connection only
  • To Data Model

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.
Get Started Free