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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
X3svfdB1HOjKYc0
Regular Visitor

Group and Concatenate

I have this list.

 

X3svfdB1HOjKYc0_0-1671024975871.png

I would like to keep one record per article ID and have the MM_MMW_Detailed column repeat with a delimiter (preferably a line break but any other delimiter would also be acceptable).

 

It looks like there is an accepted solution to my question but I can't get it to work.

https://community.powerbi.com/t5/Desktop/Agroup-and-concatenate-column-with-a-common-value/m-p/21186...

 

My attempt -

 

X3svfdB1HOjKYc0_1-1671025289230.png

Yields this error -

 

X3svfdB1HOjKYc0_2-1671025872994.png

Any assitance is very much appreciated.

 

1 ACCEPTED SOLUTION
mussaenda
Super User
Super User

 

 

Hi @X3svfdB1HOjKYc0,

 

You cannot aggregate your Detailed column with sum because your data type is a string.

Your frist step is correct, you need to group them.

Then instead of aggregating, select all columns without aggregations.

Then create a custom colmn to concat the Detailed column.

mussaenda_0-1671079904674.png

 

I attached a sample pbix for your guide.

View solution in original post

1 REPLY 1
mussaenda
Super User
Super User

 

 

Hi @X3svfdB1HOjKYc0,

 

You cannot aggregate your Detailed column with sum because your data type is a string.

Your frist step is correct, you need to group them.

Then instead of aggregating, select all columns without aggregations.

Then create a custom colmn to concat the Detailed column.

mussaenda_0-1671079904674.png

 

I attached a sample pbix for your guide.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.