SaTracking
Data visualizationNEWIntermediate

Power Query ETL workflow: connect, clean, transform and load data

Build a repeatable Power Query workflow from source connection through transformation, loading and refresh.

Download for AI (.txt)

Measurement topic illustration · SaTracking

The role of Power Query

Power Query is presented in the supplied training notes as an ETL tool: it connects to data, applies transformations and loads the result to a chosen destination. The important habit is to make transformations repeatable rather than manually editing a fresh extract every time.

The same general workflow applies when preparing data for Excel or Power BI, although the destination and refresh setup may differ.

1. Connect to a stable source

Start from the appropriate connector or, in the Excel example, convert a range into a table before using the From Table/Range command. A well-defined source range makes the query less dependent on arbitrary worksheet coordinates.

Confirm that the query points to the intended source and that column headers and data types are understood before applying transformations.

2. Inspect the Power Query Editor

The editor provides a place to inspect the preview and apply transformation steps. Treat each step as part of a reproducible sequence. Rename queries and steps so another analyst can understand the intent.

Before cleaning, inspect:

  • column names and duplicates;
  • null or blank values;
  • inconsistent formats;
  • unexpected rows;
  • data types;
  • delimiter patterns and composite fields.

3. Apply transformations deliberately

Common operations in the supplied notes include changing data types, splitting a column by delimiter, and editing, deleting or adding query steps. Apply them in a logical order.

For example, a “City, Country” field may be split on a comma into two columns. Check the preview for rows with missing or additional delimiters before relying on the split.

Set data types intentionally. A value that looks numeric may be an identifier and should not necessarily be converted to a number. Dates, decimals and locale-specific formats also deserve validation.

4. Review the transformation sequence

When a source changes, later steps may fail or produce unexpected output. Revisit each applied step after changing the source structure. Remove obsolete steps carefully and avoid deleting a transformation whose effect is needed downstream.

Use representative edge cases: empty fields, unusual delimiters, duplicate records and values outside the typical pattern.

5. Load to the intended destination

Use the load options to choose where the result should go. In Excel, the notes describe “Close & Load” and “Close & Load To…”. The destination matters: a query can be correct but still be loaded to the wrong sheet or model location.

After loading, reconcile row counts and key fields against the source. Then test refresh, not just the initial load.

Operational checklist

  • Source and credentials are valid.
  • Headers and data types are correct.
  • Each transformation has a clear purpose.
  • Split and conversion steps handle edge cases.
  • Load destination is intentional.
  • Output counts and key values reconcile.
  • Refresh succeeds after the source is updated.

Common mistakes

Manual edits outside the query, ambiguous step names, assuming all numeric-looking values are measures, ignoring locale-specific dates and validating only the first successful load make the workflow fragile.

Source basis

Based on the supplied Power Query Introduction: Transform & Load Data in Excel & Power BI notes, covering source tables, the editor, data types, delimiter-based splitting, applied-step maintenance and load destinations.

Official references

EDITORIAL HISTORY

What changed

  1. v1
    Initial bilingual publication
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.