Hi all,
I'm having trouble with removing duplicates from a cell after concatenation. Basically, in my Summarize tool, I regroup my data and concatenate multiple fields. But since in the concatenation, I can have the same value multiple times, I want to remove the duplicate values from the cell and only have a concatenation of unique values.
Examples:
EUR, EUR, USD, CHF, EUR ---> EUR, USD, CHF
01, 03, 01, 04, 01 ---> 01, 03, 04
Since I'm doing this on multiple fields at the same time, it's not very efficient to do it by splitting to rows and then using the unique tool. I've found a REGEX formula for this, but this only works on String values, not on numbers formatted as String, where it also removes the comma between the values (01, 01, 02 ---> 0102)
Trim(regex_replace([_CurrentField_],"\b(.+),(?=.*\b\1,?)",""),",")
Anyone have a formula or way of doing this easily?
Thanks in advance!