Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Concatenate values from a column in multiple rows that have the same User ID value in another column

Please see the image. I have multiple constituents that have more than one Role. I am hoping to combine those values into one row per person as shown at the bottom of the picture. It could be in a new column if needed. Thanks in advance for your assistance. 

 

combine parent roles.jpg

1 ACCEPTED SOLUTION
v-jialluo-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Please follow these steps:
(1) Create a new measure

CONCAT = CONCATENATEX(FILTER(ALL('Table'),'Table'[User ID]=MAX('Table'[User ID])),[Role],",")


(2)Final output

vjialluomsft_0-1671071117980.png

 

Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@v-jialluo-msft This is perfect! Thank you very much for your help and sharing your knowledge.

v-jialluo-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Please follow these steps:
(1) Create a new measure

CONCAT = CONCATENATEX(FILTER(ALL('Table'),'Table'[User ID]=MAX('Table'[User ID])),[Role],",")


(2)Final output

vjialluomsft_0-1671071117980.png

 

Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This is awesome. What if I had to match multiple columns in multiple rows?
For eg;
1 unified row  (containing the concatenation you mentioned[POA,POC}) for 2 or more rows having the same values for lets say 3 columns like user id, address, phone.


Thanks in advance!

Hi,

Share data in a format that can be pasted in an MS Excel file and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.