10 lines
370 B
Mathematica
10 lines
370 B
Mathematica
let
|
|
Source = (anySKU as any) as number => let
|
|
RemoveFullStop = Text.Replace(Text.From(anySKU), ".", ""),
|
|
TrimSKU = Text.Trim(RemoveFullStop),
|
|
MarkNulls = if (TrimSKU = null) or (TrimSKU = "") or (TrimSKU = "0") then -36001 else TrimSKU,
|
|
Normalize = try Number.From(MarkNulls) otherwise -36002
|
|
in
|
|
Normalize
|
|
in
|
|
Source |