Hello everyone,
I have the below table :
[TABLE="width: 337"]
<tbody>[TR]
[TD="align: left"]Client ID[/TD]
[TD="align: left"]Policy Number[/TD]
[TD="align: left"]Number of Employees[/TD]
[TD="align: left"]Gross[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1002[/TD]
[TD]20[/TD]
[TD="align: right"]100000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1002[/TD]
[TD]20[/TD]
[TD="align: right"]100000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2002[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2002[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
</tbody>[/TABLE]
and I want to know the total of employees per client code exclude duplicate policy number ( not summing number of employees under same policy number)
For example,
[TABLE="width: 255"]
<tbody>[TR]
[TD="align: left"]Client ID[/TD]
[TD="align: left"] Total Employees[/TD]
[TD="align: left"][/TD]
[/TR]
[TR]
[TD="align: right"]1100[/TD]
[TD] =10 for policy number 1001 + 20 for policy number 1002 + 30 for policy number 1003 = 60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]Thanks ,
Talal[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have the below table :
[TABLE="width: 337"]
<tbody>[TR]
[TD="align: left"]Client ID[/TD]
[TD="align: left"]Policy Number[/TD]
[TD="align: left"]Number of Employees[/TD]
[TD="align: left"]Gross[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1002[/TD]
[TD]20[/TD]
[TD="align: right"]100000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1002[/TD]
[TD]20[/TD]
[TD="align: right"]100000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2002[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2002[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
</tbody>[/TABLE]
and I want to know the total of employees per client code exclude duplicate policy number ( not summing number of employees under same policy number)
For example,
[TABLE="width: 255"]
<tbody>[TR]
[TD="align: left"]Client ID[/TD]
[TD="align: left"] Total Employees[/TD]
[TD="align: left"][/TD]
[/TR]
[TR]
[TD="align: right"]1100[/TD]
[TD] =10 for policy number 1001 + 20 for policy number 1002 + 30 for policy number 1003 = 60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]Thanks ,
Talal[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]