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
thhmez7
Helper III
Helper III

Concatenate distinct text value

Hi,

I'd like to concatenate the column Brand. Here I created a column:

thhmez7_0-1663086436125.png

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.

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1663121491668.png


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.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1663121491668.png


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.

thanks, looks good. my use case changed a bit, but it surely helps 🙂

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.