Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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],","))), ",")
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
99 | |
88 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |