How can I remove duplicates and unique values all in one go?
Example:

Before:
A
C
D
E
B
B
D

After:
B
D

Any help is appreciated.