Forum Discussion
Anonymous
5 years agoNot applicable
Extract Using Any Non-Number As Delimiter
Hi. I am trying to extract numbers that only exist before any characters occur in the string. Once ANY characters start, that will be the end of the number. The trick here is that somtimes there are ...
- Anonymous5 years ago
= Table.AddColumn(#"Modificato tipo", "Personalizzato", each try Number.From(Splitter.SplitTextByCharacterTransition({"0".."9"}, (c) => c <"0" or c>"9")([Source]){0}) otherwise 1) - 5 years ago
Anonymous , you need to add a new column this way in your senario,
Anonymous
5 years agoNot applicable
= Table.AddColumn(#"previou step", "extract", each try Number.From(Splitter.SplitTextByCharacterTransition({"0".."9"}, (c) => not List.Contains({"0".."9"}, c))([Source]){0}) otherwise 1)
Anonymous
5 years agoNot applicable
= Table.AddColumn(#"Modificato tipo", "Personalizzato", each try Number.From(Splitter.SplitTextByCharacterTransition({"0".."9"}, (c) => c <"0" or c>"9")([Source]){0}) otherwise 1)