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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hey,
I am trying to reduce the number of rows in my table, by concatenating distinct values in a particular column, but I want to leave all other columns the same.
How would I go from this
| Item | Client | Label |
| 244243 | 1 | A |
| 244243 | 1 | B |
| 244243 | 2 | A |
| 244243 | 2 | B |
| 244243 | 3 | A |
| 244243 | 3 | B |
| 244243 | 4 | A |
| 244243 | 4 | B |
| 176222 | 5 | B |
| 176222 | 6 | B |
To this:
| Item | Client | Label |
| 244243 | 1 | A,B |
| 244243 | 2 | A,B |
| 244243 | 3 | A,B |
| 244243 | 4 | A,B |
| 176222 | 5 | B |
| 176222 | 6 | B |
So I just want to concatenate the unique values in the Label column, and group by Item and Client?
Thanks so much!
Solved! Go to Solution.
try this:
Table.Group(Source, {"Item", "Client"}, {{"concat", each Text.Combine([Label], ", "), type text}})
Thank you this worked!
Hi @theapengelly ,
You can produce your required output by writing a ConcatenateX measure like below:
ConcatenateX Label = concatenatex(distinct('Table'[Client Label]),'Table'[Client Label],", ")
The required output is as shown below:
Best regards,
try this:
Table.Group(Source, {"Item", "Client"}, {{"concat", each Text.Combine([Label], ", "), type text}})
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!