COALESCE in Power Query M (dealing with Text.StartsWith returning a NULL)
Some time ago I wanted to find out if values in certain columns started with the letter “a”. I used the Power Query M function Text.StartsWith() in combination with an IF statement. A problem occurred: whenever Text.StartsWith() gets a null as input, it returns a null. If you feed an IF statement a null, instead…