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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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