Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi everybody
Hope that you are doing great.
I have a long string containing repetitive words separated by comma. I want to remove the duplicates and retain only unique words.
For example: John,Arthur,John,Lisa,Patrick,John,Lisa
Output should be: John,Arthur,Lisa,Patrick
I would appreciate for ant help.
Best Regards
Rashid
Solved! Go to Solution.
Hi @rashidanwar ,
You will need to split the columns in to rows first in Power Query Editor and then you could use the below DAX formula to get the result.
Column = CONCATENATEX (
VALUES ( 'Table'[Column1] ),
'Table'[Column1] ,
", "
)
Best Regards,
Jay
Hi @rashidanwar ,
You will need to split the columns in to rows first in Power Query Editor and then you could use the below DAX formula to get the result.
Column = CONCATENATEX (
VALUES ( 'Table'[Column1] ),
'Table'[Column1] ,
", "
)
Best Regards,
Jay
Thank you so much for your reply.
This text is the result of a calculated column in the Data view. Doesn't exits in the query editor.
@rashidanwar , In power query create a new column like
Text.Combine(List.Sort(List.Distinct( Text.Split([Column]))), ",")
almost 😉
Text.Combine(List.Sort(List.Distinct( Text.Split([Column],","))), ",")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
119 | |
72 | |
72 | |
57 | |
50 |
User | Count |
---|---|
167 | |
83 | |
68 | |
66 | |
55 |