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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.