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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.