This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hello,
I have in a column, values including some duplicates :
Ex :
Input :
| ID | Value |
| ID1 | A-B-A-C-A |
| ID2 | A-B |
| ID3 | A-C-C |
Expected Output :
ID | Value |
| ID1 | A-B-C |
| ID2 | A-B |
| ID3 | A-C |
Thanks in advance for your help
Solved! Go to Solution.
Hi @Anonymous ,
Please refer to my pbix file to see if it helps you.
Create a custom column in Power Query.
=Text.Combine (
List.Distinct(
List.Transform (Text.Split([Value],"-"),each Text.Trim(_))
)
,"- ")
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please refer to my pbix file to see if it helps you.
Create a custom column in Power Query.
=Text.Combine (
List.Distinct(
List.Transform (Text.Split([Value],"-"),each Text.Trim(_))
)
,"- ")
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Use Text to Table, replace - with | see the first comment below this entry:
Text to Table - Microsoft Power BI Community
Then you can use DISTINCT and CONCATENATEX to recombine with your dashes.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 30 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 62 | |
| 51 | |
| 31 | |
| 23 | |
| 23 |