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
michdeblasi
New Member

Merge rows with same ID, but then sum the values in another row.

I have lots of rows of data some rows have duplicate values in a certain row. I want to merge those rows into one.  However there are other columns in that row that have values that I need to sum together to give a new value.  I actually have two columns in the rows. 

 

I read somewhere on this board to convert all the columns to text. So I have done that. 

 

Here is an example:

michdeblasi_0-1675874206616.png

 

I want all the rows to stay the same but sum GB Usage column, and sum Count column.  So it looks like this:

michdeblasi_1-1675874364168.png

 

I have searched the knowledgebase and cannot get the right steps.

Any help appreciated

3 REPLIES 3
amitchandak
Super User
Super User

@michdeblasi , I think a simple sum of these columns in the visual can do.

 

or you can do group by in power query https://docs.microsoft.com/en-us/power-query/group-by

 

 

All thank you for this, I finally figured out how to group by properly.  


Thank you again.

I am sorry but I am fairly new, I don't understand the sum by column, I only want the sum if there are duplicate numbers.  I don't want the entire column of GB usage to be totalled. 

 

I was doing the Group By but that didn't seem to work, it was just generating errors. 

 

It is a shame you cannot just select the rows you want to merge and they merge similar to selecting two columns.  

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.