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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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