Forum Discussion
Concatenate distinct text value
Hi,
I'd like to concatenate the column Brand. Here I created a column:
For Product G there are two data rows with Brand = n. If this is the case, the brand "n" should be displayed only once. It should be treated as a distinct value. So the result should be "n + U" for product G.
Thank you for help.
Hi, thhmez7 ;
Try this dax about column.
Concate = CONCATENATEX ( SUMMARIZE ( FILTER ( ALL ( 'Table' ), [Product] = EARLIER ( 'Table'[Product] ) ), [Brand] ), [Brand], "+", 'Table'[Brand], ASC )The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- v-yalanwu-msft
Community Support
Hi, thhmez7 ;
Try this dax about column.
Concate = CONCATENATEX ( SUMMARIZE ( FILTER ( ALL ( 'Table' ), [Product] = EARLIER ( 'Table'[Product] ) ), [Brand] ), [Brand], "+", 'Table'[Brand], ASC )The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- thhmez7
Helper III
thanks, looks good. my use case changed a bit, but it surely helps 🙂