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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors