Skip to content

Efflexion/power-query-data-cleaning-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Operational spreadsheet consulting for small businesses

Power Query Data Cleaning Patterns

A collection of practical patterns for cleaning messy operational data using Power Query.

Many organisations rely on spreadsheets that combine exports from different systems, manual entries, and historical data structures.

Power Query provides a reliable way to transform that data into consistent, analysis-ready datasets.

This repository documents common cleaning patterns used in operational Excel workflows.


Common data issues

Typical problems seen in operational spreadsheets include:

• inconsistent column naming
• mixed data types in the same column
• blank rows or hidden separators
• duplicate records
• manual formatting affecting values
• inconsistent date formats
• text values with trailing spaces
• exported system tables with metadata rows

Power Query allows these issues to be resolved in a repeatable way.


Data cleaning patterns

Remove empty rows

Remove rows that contain no meaningful values.

Useful when exports include separator rows or blank lines.


Trim and clean text fields

Remove extra spaces and non-printable characters.

Common when data is copied between systems.


Standardise column names

Ensure columns follow consistent naming conventions before transformations.

This prevents downstream errors when structures change.


Remove duplicates

Identify and remove duplicate rows when datasets contain repeated entries.


Convert data types early

Explicitly define data types such as:

• date
• number
• text

This reduces transformation errors later.


Replace inconsistent values

Example:

About

Common Power Query patterns for cleaning messy operational data and preparing spreadsheets for reliable reporting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors