Power Query M code
let
Source = YourTable,
Replaced = Table.ReplaceValue(Source, "", null, Replacer.ReplaceValue, Table.ColumnNames(Source))
in
Replaced
Converts empty-string values in a table to true nulls, which Power Query treats differently from blanks.
let
Source = YourTable,
Replaced = Table.ReplaceValue(Source, "", null, Replacer.ReplaceValue, Table.ColumnNames(Source))
in
Replaced
Run this before type conversion - empty strings often fail to convert to number or date, while null converts cleanly.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Replace Blank Strings with Null.