How to add column values of IDs and store sum value it in first row of each id in table. Find the attached sample file screenshot.
Expected Output
ID A B C D
1020 2 0 0 1 -add column values in 1 row
1020 1 0 0 1
1020 0 0 0 0
1002 2 4 4 1-add column values in 1 row
1002 0 2 0 1
1002 0 0 1 0
Same goes for 1002 id as well.