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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
geroagostini
Helper I
Helper I

Group By dax All rows

Hi!

 

 I have a table like the one of the picture, with 17 courses.

geroagostini_0-1683135590415.png

I'm working with Group By to unify by USERID. After I create that particular table called "NEW" I want to extract the names of the Curses of the columns created, remove the duplicates and combine them using some Concatenate function and separatethem without with the comma (",").

 

 This dax works for the first column. I NEED HELP TO ADD THE REST OF THE COLUMNS (Course 2, Course 3, Course 4,...) in the same concatenated Column "NEW"

geroagostini_2-1683136721107.png

 

= Table.Group(#"Columnas quitadas", {"USERID"},
{
{"NEW", each Text.Combine(List.Distinct(_[Course 1]),",")}})

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@geroagostini , I added two columns to group by and then manually changed the code

 

Table.Group(Source, {"Category"}, {{"Items", each Text.Combine(List.Sort(List.Distinct([Name])),","), type nullable text}, {"Brands", each Text.Combine(List.Sort(List.Distinct([Brand])),","), type nullable text}})

 

amitchandak_0-1683220295116.png

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@geroagostini , I added two columns to group by and then manually changed the code

 

Table.Group(Source, {"Category"}, {{"Items", each Text.Combine(List.Sort(List.Distinct([Name])),","), type nullable text}, {"Brands", each Text.Combine(List.Sort(List.Distinct([Brand])),","), type nullable text}})

 

amitchandak_0-1683220295116.png

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.