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
Good day all,
I want to trim a dataset be removing repeats of a certain column, like a distinct function. However, in another column there are unique values, which I would all like to keep, by concatenation.
Example:
A dataset that looks like this:
| Owner | City | Pet | Name |
| Bob | Berlin | Dog | Chippy |
| Bob | Berlin | Cat | Ziggy |
| Bob | Berlin | Dog | Jiffy |
| Judy | New York | Cat | Taco |
| Judy | New York | Cat | Baco |
Would become the following:
| Owner | City | Pet | Name |
| Bob | Berlin | Dog; Cat; Dog | Chippy; Ziggy; Jiffy |
| Judy | New York | Cat; Cat | Taco; Baco |
Does anyone know how I would go about this? I can imagine a concatenation before using distinct would be a valid approach. However, I do now know how to do this. Help is much appreciated!
Solved! Go to Solution.
you can try this
Proud to be a Super User!
you can try this
Proud to be a Super User!
Thank you!
you are welcome
Proud to be a Super User!
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!
| User | Count |
|---|---|
| 103 | |
| 81 | |
| 65 | |
| 50 | |
| 45 |