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

View all the Fabric Data Days sessions on demand. View schedule

Reply
thhmez7
Helper III
Helper III

Concatenate from column Brand by columns Product & Date

Hi,

 

I'd like to create a column (or measure) "Combined" that concatenate the text from Brand column by Product column and Date.

It should be ordered by Brand ascending for each Product & Date.

It should look like this:

thhmez7_4-1663071565720.png

In Combined of Product C: Brand E comes before B, because A and E are on the same earlier day. So after that comes Brand B which retrieves "A+E+B".

I hope my description is clear. Thank you very much for your help.

1 ACCEPTED SOLUTION

@thhmez7 
Like this

Combined =
CONCATENATEX (
    CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Product] ) ),
    'Table'[Brand],
    " + ",
    'Table'[Date], ASC,
    'Table'[Brand], ASC
)

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @thhmez7 
Please use

Combined =
CONCATENATEX (
    CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Product] ) ),
    'Table'[Brand],
    " + ",
    'Table'[Date], ASC
)

@tamerj1 

Thank you. I enhanced the example and the result isn't quite correct:

thhmez7_0-1663075059512.png

In Product F, Brand O should be placed before V.

In Product G, Brand G should be placed before U in "Combined". In both cases the modifiedon date is the same date.

I did this with both column and measure, same results.

 

How can the DAX be adapted? Thanks.

 

@thhmez7 
Like this

Combined =
CONCATENATEX (
    CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Product] ) ),
    'Table'[Brand],
    " + ",
    'Table'[Date], ASC,
    'Table'[Brand], ASC
)

Thank you, perfect now 🙂

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