Hi All,
I wanted to build two columns using solely Regex because I have a column with the data listed follows.
-

It worked perfectly -
Column 1: if REGEX_Match([Source], "[^\|]+") then [Source] else Null() endif
Column 2: if REGEX_Match([Source], "[^\|]+\|MAPP") then [Source] else Null() endif

However, Tableau is producing inaccurate results when I try to build calculated fields.
Column 1 -

Column 2 -

Getting incorrect results, as seen below -

How can I resolve this issue? Kindly help.