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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GilesWalker
Skilled Sharer
Skilled Sharer

Concatenate rows values

Hi everyone,

 

I have a table in a databse which has job numbers, template nuber, and comments. I have managed to do a bunch or merges, pivots, and joins to get the table to look like this:

 

Smart.PNG

 

You will notice the bulk of the JobNo is the same, this is becasue whenever a new comment is added it creates a duplicate row. What I want to do is join all the comments in to one sell if the JobNo is the same. Can this be done in Query Editor or am I better off using DAX?

 

Thanks,

 

Giles

1 ACCEPTED SOLUTION
Baskar
Resident Rockstar
Resident Rockstar

Hey Gileswalker,

 

 I suggest u go with DAX.

 

DAX Query :

 

Concate = CONCATENATEX(Tablename,Comments,"Delimeter whatever u want")

 

check it and let me know, i will help u if not work....

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

@GilesWalker Check out this post...

http://community.powerbi.com/t5/Desktop/Help-with-a-table-visualization/m-p/24298#M7829

@ImkeF as you know is the M Expert and she had a great solution there

Hopefully you can make it work in your case!

Baskar
Resident Rockstar
Resident Rockstar

Hey Gileswalker,

 

 I suggest u go with DAX.

 

DAX Query :

 

Concate = CONCATENATEX(Tablename,Comments,"Delimeter whatever u want")

 

check it and let me know, i will help u if not work....

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.