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
Moniek
Resolver I
Resolver I

Combine rows of a table

Hi, I have got table 1 and I want make Table 2. Does anyone knows how to do?

 

Thankx!

Moniek_0-1704804463239.png

 

2 ACCEPTED SOLUTIONS

Thankx Stéphane for the code, does I add a custom column? Or where Can I add the code, in M?

 

View solution in original post

slorin
Super User
Super User

No, just add a new step and replace "Your_Source" by your "previous step"

View solution in original post

4 REPLIES 4
slorin
Super User
Super User

No, just add a new step and replace "Your_Source" by your "previous step"

Thanks, I haven already solved it. 

 

slorin
Super User
Super User

Hi,

 

Table.Group(
Your_Source,
{"Column 1"},
{ {"Column 2", each Text.Combine([Column 2], " / ")},
{"Column 3", each List.Sum([Column 3])}},
GroupKind.Local,
(x,y) => Byte.From(y[Column 1] <> null))

Stéphane

Thankx Stéphane for the code, does I add a custom column? Or where Can I add the code, in M?

 

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.

Top Kudoed Authors