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
StoryofData
Helper III
Helper III

Rows to List

Hello, 

 

How do I convert my table into a list based on selected values?

 

This is what I have 

Identification NumberCategoryAll Other columns
A-123Apple 
A-123Mango 
A-123Banana 
B-456Pineapple 
B-456Watermelon 

 

What I need

Identification NumberCategory
A-123Apple, Mango, Banana
B-456Pineapple, Watermelon
1 ACCEPTED SOLUTION
vicky_
Super User
Super User

If this is in DAX, you can use the CONCATENATEX function to combine; something like:

CategoryCombined = CONCATENATEX(CALCULATETABLE('Table', ALLEXCEPT('Table', 'Table'[Identification Number])), 'Table'[Category], ", ")

vicky__0-1690410543749.png

 

View solution in original post

2 REPLIES 2
vicky_
Super User
Super User

If this is in DAX, you can use the CONCATENATEX function to combine; something like:

CategoryCombined = CONCATENATEX(CALCULATETABLE('Table', ALLEXCEPT('Table', 'Table'[Identification Number])), 'Table'[Category], ", ")

vicky__0-1690410543749.png

 

thank you so much!

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.