I have some fields with the same values after that I need to remove them. Some of the values are duplicates after I merged values from different layers and grouped them using the same ID number.
For example, if an attribute value is "5479-067, 5479-067" I'd need the result like "5479-067". I have not found a simple expression but it did not work for me:
array_to_string(array_distinct(string_to_array("result")))
any idea? what I did do wrong or how to solve it?
After trying the answer I need to get space between values (red line)