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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors