Add new Power Query functions and update settings for improved data handling
This commit is contained in:
9
power-query/specific/fNormalizeSN.m
Normal file
9
power-query/specific/fNormalizeSN.m
Normal file
@@ -0,0 +1,9 @@
|
||||
let
|
||||
Source = (anySN as nullable any) as text => let
|
||||
TrimSN = try Text.Trim(Text.From(anySN)) otherwise "-36002",
|
||||
MarkNulls = if (TrimSN = null) or (TrimSN = "") or (TrimSN = "0") then "-36001" else TrimSN,
|
||||
Normalize = try Text.Upper(MarkNulls) otherwise "-36002"
|
||||
in
|
||||
Normalize
|
||||
in
|
||||
Source
|
||||
Reference in New Issue
Block a user