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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors