Skip to content

Power Query ETL From Scratch Data Cleaning Pipeline

Build a reusable ETL pipeline in Power Query that automatically cleans and combines monthly workbooks.

YouTube · Awake to Power Communications · 9 August 2026 Watch on YouTube

0

Report / takedown request

Your report is sent to our team and reviewed.

Tried this idea? Show how yours turned out.

I made this

#powerquery #etltesting #datacleaning #MLanguage #dataanalytics #excel #powerbi #datawrangling #DataTribe

How to do it

What you need

  • Excel workbooks saved in one folder
  • Power Query Editor
  • M language (let...in)
  • Custom M functions
  • Practice disease-surveillance datasets
  • Class slides and flowcharts

Step by step

  1. Import the monthly workbooks and prepare the data in Power Query.
  2. Profile and diagnose the messy data before cleaning it.
  3. Build reusable functions: fnExtractNumber, fnDate, fnCleanAge for numbers, dates and ages.
  4. Add fnAgeGroup, fnStandardiseSex, fnStandardiseState, fnStandardiseOutcome, fnStandardiseLabResult and fnRegionFromSate.
  5. Import the whole folder into Power Query as a folder query.
  6. Apply the cleaning functions to every file in the folder.
  7. Validate the final combined dataset.
  8. Set the pipeline to refresh so next month is drop, refresh, done.

Tips

  • Use try...otherwise to handle errors deliberately instead of letting them break the refresh.
  • Handle date and culture settings explicitly so dates parse consistently across files.
  • Keep each cleaning rule in its own small function so the pipeline stays reusable across new months.

Written by Tagrazzi from the original's description and photo.

The title and summary are written by Tagrazzi; the video belongs to its creator and plays from YouTube.

Comments (0)

No comments yet. Be the first to comment.

Sign in to write a comment.