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
ccsrtw
Helper I
Helper I

power query - group/pivot

I have a table with two columns:

 

ID                                        Product  

006F000000bqOUHIA2Apple
006F000000bqosaIAABBanana
006F000000dqoLdIAIPear
  

 

There are dupes in the ID column. I want to essentially group the IDs and merge their products together so instead of each combination of ID and Product getting its own row, it would look more like (no more dupes in ID):

 

ID                                        Product  

006F000000bqOUHIA2Apple; Banana
006F000000bqosaIAABBanana; Orange; Pear
  

 

Thanks!

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@ccsrtw

 

Hi, A alternative in DAX:

 

Create a New Table(from Modeling) and use this:

 

Table =
SUMMARIZECOLUMNS (
    Table1[ID],
    "FruitList", CONCATENATEX ( Table1, Table1[Fruit], "," )
)

 




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@ccsrtw

 

Hi, A alternative in DAX:

 

Create a New Table(from Modeling) and use this:

 

Table =
SUMMARIZECOLUMNS (
    Table1[ID],
    "FruitList", CONCATENATEX ( Table1, Table1[Fruit], "," )
)

 




Lima - Peru

That gets it done, thanks!

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.