I'm currently stuck with below problem, scenario:
I have two columns who together serves as a "Primary key, and column with values that i want to sum. Whats important, I want summed values to be copied over all records with the same "Primary key"
So it should go something like this:
Col1 Col2 Col3 la01
A1 B1 EPP 1
A1 B2 EPP 1
A1 B1 EPQ 2
Trasnofrms into:
Col1 Col2 Col3 la01
A1 B1 EPP 3
A1 B2 EPP 1
A1 B1 EPQ 3
I'he had some success using group_by
with one of the summarise
versions, but the best I've got was results of the sum split by number of records summed, but i need it copied.
Looking forward for your thoughts and answers.