Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

DAX to remove duplicates from comma separated string

Hi, 

I have input like below

vaishnaviudan_0-1709622423651.png

want to write a dax which will show below output:

vaishnaviudan_1-1709622481388.png

Note: Need solution in PowerBI Desktop only not in Power Query Editor(Advance Editor).

5 REPLIES 5
Zang_Mi
Resolver II
Resolver II

Hello @Anonymous and @marksn, there is an article with the solution using DAX: Removing Duplicates and Sorting Delimited Strings in Power BI .

This is brilliant! Thank you for sharing 🙂

marksn
Frequent Visitor

is this still not possible in DAX?
I too have a calculated dax column that spits "abc; def; ghi; abc" and i want to get rid of duplicates (and at the same time sort it alphabetically).

Hi,

This is still not possible in DAX.  You will have to use Power Query to solve the question.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous ,

As far as I know, this is currently not possible with DAX, you can try to implement it in Power Query.

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.