Forum Discussion
DAX Measure to Concatenate Unique Strings
- 5 years ago
Hi, carrl284
Please try the link down below.
Comments =IF (ISFILTERED ( 'Table'[EmployeeId] ),CONCATENATEX (SUMMARIZE (FILTER ( ALL ( 'Table' ), 'Table'[EmployeeId] = MAX ( 'Table'[EmployeeId] ) ),'Table'[Comment]),'Table'[Comment],", "))Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
carrl284 can you try pivoting your date columns and your employeeid should be the column name and you should return your comments while pivoting, that way we get the comments on the corresponding days in a row for an employee, you will eliminate the duplicates which you have shown in your image. Then you can try your concatenate DAX, you might get blanks using this method that you can take care of I believe.
Please mark this as solution, if I helped you well.
Thanks
Hi Anonymous Thanks for the quick response. In my actual model there is a lot more going on so I don't think I could face reshaping the data model now.