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
I have this formula (Tables are masked) in which returns concatenated values for two columns in Table A that unfortunately does not return unique values. Would someone be able to assist on how this can be written so that my results are unique?
Combined Values =
CALCULATE(CONCATENATEX(,
FILTER(
'Table_A',
'Table_A'[Key]
IN VALUES('Table_B'[Key])
),
'Table_A'[Column_1]&" - "&'Table_A'[Column_2],
";"& UNICHAR(10),
'Table_A'[Column_1], ASC
), ALL('Table_A'))
Solved! Go to Solution.
Hi @katyfailoo
please try
Combined Values =
CALCULATE (
CONCATENATEX (
DISTINCT (
SELECTCOLUMNS (
FILTER ( 'Table_A', 'Table_A'[Key] IN VALUES ( 'Table_B'[Key] ) ),
"@_1", 'Table_A'[Column_1],
"@_2", 'Table_A'[Column_2]
)
),
[@_1] & " - " & [@_2],
";" & UNICHAR ( 10 ),
[@_1], ASC
),
ALL ( 'Table_A' )
)
Thank you so much! @tamerj1 this solution works. Can't thank you enough for your time and help!
Thank you so much! @tamerj1 this solution works. Can't thank you enough for your time and help!
Hi @katyfailoo
please try
Combined Values =
CALCULATE (
CONCATENATEX (
DISTINCT (
SELECTCOLUMNS (
FILTER ( 'Table_A', 'Table_A'[Key] IN VALUES ( 'Table_B'[Key] ) ),
"@_1", 'Table_A'[Column_1],
"@_2", 'Table_A'[Column_2]
)
),
[@_1] & " - " & [@_2],
";" & UNICHAR ( 10 ),
[@_1], ASC
),
ALL ( 'Table_A' )
)
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 |
|---|---|
| 19 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 20 | |
| 12 | |
| 10 |