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