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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.