Add new Power Query functions and update settings for improved data handling
This commit is contained in:
10
power-query/specific/fNormalizeSKU.m
Normal file
10
power-query/specific/fNormalizeSKU.m
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user