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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Remove duplicate values separated by a comma in a text string in DAX

Good morning to all

I have a measurement in DAX that returns a string of characters but as the query does from a table with several records made on different dates it returns the text string with repeated values.

This is the Measure:

Pending Approval 2 = CONCATENATEX('Timesheet Pending Date','Timesheet Pending Date'[User],", ")
Example of the result is:

Gabriela Rivera, Gabriela Rivera, Gabriela Rivera, Ivan Callay, Ivan Callay

What I need is to remove the repeated names and leave me the string only with an instanacia for each different value, that is to say that it leaves me as a result this:

Gabriela Rivera, Ivan Callay

I hope you can help me with this.

Thank you very much for your help.

1 ACCEPTED SOLUTION
sevenhills
Super User
Super User

Pending Approval 2 = CONCATENATEX(VALUES('Timesheet Pending Date'[User]),'Timesheet Pending Date'[User],", ")
 
Try this?

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Excellent, thank you very much, it works perfectly

sevenhills
Super User
Super User

Pending Approval 2 = CONCATENATEX(VALUES('Timesheet Pending Date'[User]),'Timesheet Pending Date'[User],", ")
 
Try this?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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