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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.