Sample Data:
    P   Q    R
    1   A    3
    1   A    3
    1   A    2
    1   B    5
    1   C    7
    2   A    3
    2   A    3
Expected Output:
P   Q    R
1   A    5
1   B    5
1   C    7
2   A    3
    
i Have tried this Sum (Distinct R) but it is not working. i need to group by P and Q column and add Unique Value of R for that. Please support