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
ludovic_ott
Regular Visitor

Group list into one cell

Hello,

 

I am trying to change the table below :

ludovic_ott_0-1700247033146.png

 

To look like this:

MaterialWork Ctr
9266802471TBD24 TBE22 TBE24

 

Basically have all "Work Ctr" for the material 9266802471 listed into one cell with one space between each. How can I do this ?

 

Regards

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @ludovic_ott ,

You can create a calculated column as below to get it:

Column = 
CONCATENATEX (
    FILTER ( 'Table', 'Table'[Material] = EARLIER ( 'Table'[Material] ) ),
    'Table'[Work Ctr],
    " ",
    'Table'[Work Ctr], ASC
)

vyiruanmsft_0-1700716879300.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @ludovic_ott ,

You can create a calculated column as below to get it:

Column = 
CONCATENATEX (
    FILTER ( 'Table', 'Table'[Material] = EARLIER ( 'Table'[Material] ) ),
    'Table'[Work Ctr],
    " ",
    'Table'[Work Ctr], ASC
)

vyiruanmsft_0-1700716879300.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
lbendlin
Super User
Super User

read about CONCATENATEX  in DAX, or Text.Combine in Power Query

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.