Headers, types and errors
Profile the whole column, promote the headers, set types with the right locale, trim text, and decide what happens to every error.
An export from a sales system rarely loads clean: a title row above the headers, numbers stored as text, dates in someone else's format and a few cells that say n/a. Power Query fixes each of these once, as a step, and repeats the steps on every refresh.
Look at the whole column first
Open Transform data, then on the View tab tick Column quality, Column distribution and Column profile. Each column now shows how many values are valid, errors or empty. By default the profile reads only the first 1,000 rows, so select Column profiling based on top 1000 rows at the bottom of the window and switch it to the entire data set before you trust the numbers.
Headers and junk rows
When the real headers sit in row three, use Remove Rows > Remove Top Rows to drop the rows above them, then Use First Row as Headers. Each click is a step in Applied Steps, and you can rename, reorder or delete it later.
Skipped = Table.Skip(Source, 2),
Headers = Table.PromoteHeaders(Skipped)Types with the right locale
Set every column's type on purpose: a date column as Date, an amount as Decimal number or Fixed decimal number, a code as Text so leading zeros stay. When dates or decimals come from another country, 03/04/2026 can mean March or April. Right-click the column, choose Change Type > Using Locale and pick the locale the file was written in.
Text that only looks the same
Vienna, Vienna and vienna are three cities to a model. Select the text columns and use Transform > Format > Trim, then Clean to remove characters you cannot see. Pick one case for codes with Uppercase.
Decide what happens to errors
A type change turns n/a into an Error cell. Power Query offers three answers on the column:
Remove errors drops the rows (Home > Remove Rows)
Replace errors puts a value in their place, such as null
Keep errors shows only the rows with errors, to check themUse Keep errors in a copy of the query to see what failed, then Replace errors with null for values you can live without, or Remove errors for rows that are useless without that value.