Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31097

Group By for all the columns

$
0
0

Dear all,

 

I have a table with more than 20 columns, and due to some operations, I have rows duplicated that I need to sum.

 

The only thing I have in mind to solve this is with Group by function.

 

On one column the code is this:

#"Grouped Rows" = Table.Group(NewTableRule1, {"Helper_1"}, {{"OEM_Y3_Volumes", each List.Sum([OEM_Y3_Volumes]), type number}, {"DISTRIBUTOR_Y3_Volumes", each List.Sum([DISTRIBUTOR_Y3_Volumes]), type number}})

 

Is there any way to manage this for all the columns instead of having all the columns listed here:

{"Helper_1"}

 

Thanks for your feedback.

 


Viewing all articles
Browse latest Browse all 31097

Trending Articles