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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
glenmclaren
Helper II
Helper II

how can i aggregate/combine, multiple row values into a single row field

Hi all, firstly i'm not sure if this can even be done.

i am working with a dataset in direct mode, so i can only create calculated measures via DAX. There is no transformation tab.

 

in this example, i have 5 rows of data

 

carjohn
car

glen

car

tom
bikepaul
bikejohn

 

 

what i would like to achieve is this

 

carjohn, glen, tom
bikepaul, john

 

 

so any help would be welcome

thanks in advanced

g

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @glenmclaren 

 

Please try to write the below for the calculated measure.

 

Result =
CONCATENATEX('Table', 'Table'[Column2], ", ")
 
Or, if you want to create a new table, try below.
 
new table =
SUMMARIZE( 'Table', 'Table'[Column1], "Column2", CONCATENATEX('Table', 'Table'[Column2], ", "))
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, @glenmclaren 

 

Please try to write the below for the calculated measure.

 

Result =
CONCATENATEX('Table', 'Table'[Column2], ", ")
 
Or, if you want to create a new table, try below.
 
new table =
SUMMARIZE( 'Table', 'Table'[Column1], "Column2", CONCATENATEX('Table', 'Table'[Column2], ", "))
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


hello, thanks for the response, it is close, but it puts all the agains each record

 

carjohn, glen, tom, paul, john
bike

john, glen, tom, paul, john

 

how can i make it specific to the relevant records

 

carjohn, glen, tom
bikepaul, john

 

thanks

Hi, @glenmclaren 

 

Please check the link down below.

I am not sure what I have missed, but please correct me if I wrongly understood your question.

 

https://www.dropbox.com/s/dks31vlz4t2ofqz/glenmclaren.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.