Hey all,
I'm in a scenario where I want to group a table by approximately 10-15 columns, and concatenate the values of 4 other columns. This often results in duplicates present in the concatenated columns, which I would like to get rid of. Considering the size of data, I would like to avoid using transpose/crosstab to handle it if possible. Looking through the community, I found the below REGEX_Replace formula in this thread which achieves this. However, since it relies on word boundaries, it breaks if any of the concatenated values contain special characters.
Does anyone have any insight on how to work around this?
REPLACE(
TRIM(
REGEX_Replace([_CurrentField_], "\b(.+),(?=.*\b\1,?)", "")
)
," ",", "
)Thanks!