PL-300 Prepare the data • Set 16
PL-300 Prepare the data Practice Test 16 — 15 questions with explanations. Free, no signup.
You are cleaning a column that contains numbers stored as text, with occasional leading/trailing spaces and currency symbols. You apply the function above to the column. However, some rows return null even though the original text appears to be a valid number, such as '$ 1,234.56'. What is the most likely cause?
Refer to the exhibit. The following Power Query M function is defined:
(value as any) as nullable number =>
try Number.From(Text.Replace(Text.Clean(value), " ", ""))
otherwise null