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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.