Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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:
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.
Solved! Go to Solution.
@thhmez7
Like this
Combined =
CONCATENATEX (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Product] ) ),
'Table'[Brand],
" + ",
'Table'[Date], ASC,
'Table'[Brand], ASC
)
Hi @thhmez7
Please use
Combined =
CONCATENATEX (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Product] ) ),
'Table'[Brand],
" + ",
'Table'[Date], ASC
)
Thank you. I enhanced the example and the result isn't quite correct:
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 🙂
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |