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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
DavidEg
Frequent Visitor

Transform data to delete duplicate Rows Table.TransformColumns

Hello, I have a query similar to as below screenshot shown

DavidEg_0-1608285347737.png

I would like to transform it so that it does not have duplicate rows of the student column and group the class fields as follows:

DavidEg_1-1608286890283.png

I'm using these M queries, but I can't get the expected result.

I have tried the following queries:

Table.SplitColum Table.TransformColumns

Has anyone transformed the data in a similar way and can help me?

Thank you so much for everything.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@DavidEg , refer to the form of energy consultation

https://www.excel-university.com/combine-rows-into-a-delimited-list/

https://exceloffthegrid.com/power-query-combine-rows-into-a-single-cell/

in dax use this measure with Student in a visual table/matrix

concatenatex(Table, table[class], ",")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
DavidEg
Frequent Visitor

Thank you very much, I've got it.

I googled and found nothing.

I've done as the consultation says.

I grouped the column and then combined the rows as text.

= Table.Group(Origen, {"student"}, {{"Recuento", each Text.Combine([classes.1], "; "), type text}})

Thank you so much for everything!!

amitchandak
Super User
Super User

@DavidEg , refer to the form of energy consultation

https://www.excel-university.com/combine-rows-into-a-delimited-list/

https://exceloffthegrid.com/power-query-combine-rows-into-a-single-cell/

in dax use this measure with Student in a visual table/matrix

concatenatex(Table, table[class], ",")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.