Transform in Power Query, not in cells
Data & sources
The rule
Cleaning, unpivoting, splitting, type-casting and joining happen in the query. Formulas start after the data is already shaped.
Why it matters
A column of formulas cleaning a data set is a transformation that has to be reapplied, re-filled, and re-checked on every refresh. It also fails silently when next month’s export arrives with 4,200 rows instead of 3,800.
Power Query steps re-run on refresh at whatever the row count happens to be. The step list is a readable record of exactly what was done to the data, and that record is the difference between a model you can defend and one you can’t.
How to do it
Move the recurring offenders first. TRIM and CLEAN on text keys, splitting concatenated codes, unpivoting month columns into rows, mapping account codes through a merge. Each of those becomes one applied step.
Then name the steps. Power Query lets you rename them, and “Normalize Account Keys” documents itself where “Replaced Value1” tells the next person nothing.
The exception
A one-off analysis you’ll never refresh doesn’t need a pipeline. Be honest about how many of your files are really one-offs.
