cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Sum row values by ID

Hi guys, I have the following situation:

 

12.PNG

What I need to do is, sum the values that have the same ID, put the new value on the same row as it's respective ID, and after this, remove the duplicated ID, in a way that the final product would have no duplicated ID.

 

Can anyone help me with that? Thanks a lot.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User I
Super User I

Re: Sum row values by ID

@Anonymous  ar eyou wanting to do this in query editor or in the visual pane?  because all you ahve to do is create a measure and then it will automtically aggregate it?

 

otherwise alll you need to do in query editor is use the group by under transform and that will aggregrate and give you a new total





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Highlighted
Super User I
Super User I

Re: Sum row values by ID

@Anonymous  ar eyou wanting to do this in query editor or in the visual pane?  because all you ahve to do is create a measure and then it will automtically aggregate it?

 

otherwise alll you need to do in query editor is use the group by under transform and that will aggregrate and give you a new total





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Highlighted
Anonymous
Not applicable

Re: Sum row values by ID

Hey @vanessafvg

 

I'm trying to do it on the query editor. I tried grouping as you suggested, but I end up losing all other columns, and some values doesn't add up, like this:

13.PNG

 

Do you have any idea of what I could do to keep the other columns, and why this ID doesn't add up like the others?

Highlighted
Super User I
Super User I

Re: Sum row values by ID

@Anonymous it potentially has some white space in it?  i would do a replace   blank space with nothing and see if it helps?

 

change your group by to advanced  and add all the columns you want to keep, but note that they obviously all need to have the same value or it will create more than one row for the combination.

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Anonymous
Not applicable

Re: Sum row values by ID

Hi @vanessafvg

 

That was it! I trimmed it for blank spaces and was able to fix all errors. Also did the advanced grouping and now everything is correct!

 

Thanks very much!

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors