CrystalProgDev
Programmer
I have a table with the below values
ID COL1 COL2 COL3
1 AAA P1 50
2 AAA P1 50
3 AAA P1 50
4 BBB P1 150
5 BBB P1 150
I need output as below with another column 'Sum' as sum of distict values of COL3 grouped by COL1 and COL2, in this case 50+150
ID COL1 COL2 COL3 Sum
1 AAA P1 50 200
2 AAA P1 50 200
3 AAA P1 50 200
4 BBB P1 150 200
5 BBB P1 150 200
Can you please help me in provideing the solution?
Thank you in advance
ID COL1 COL2 COL3
1 AAA P1 50
2 AAA P1 50
3 AAA P1 50
4 BBB P1 150
5 BBB P1 150
I need output as below with another column 'Sum' as sum of distict values of COL3 grouped by COL1 and COL2, in this case 50+150
ID COL1 COL2 COL3 Sum
1 AAA P1 50 200
2 AAA P1 50 200
3 AAA P1 50 200
4 BBB P1 150 200
5 BBB P1 150 200
Can you please help me in provideing the solution?
Thank you in advance