Allocation is based on Percent * Amount To Allocate
Percent is the total pay amounts grouped by project divided by employees total pay amount.
In our example the amount to allocate which is different for every employee is 22.00
Proj1 20.00 .33% * 22.00 =$7.26
Proj2 20.00
Proj3 20.00
Total 60.00
So for each project above I would get $7.26 for each project which totals 21.78. Unfortunately the amounts we allocate have to sum exactly to the figure we are using to allocate which in this example is $22.00. I tried using the formula below but it doesn't seem to work and I've tried various rounding combinations:
The {@Sumoffringe2} is the Total pay amount the ({#RTotal1} is the total pay amount at the proj level. I not certain the formula below can deliver what I want. Based on the above example the results I want would be as follows:
Proj1 20.00 .33% * 22.00 =$7.26
Proj2 20.00 .33% * 22.00 =$7.26
Proj3 20.00 .33% * 22.00 =$7.48
Total 60.00
If round({@Sumoffringe2},2) <= round({#RTotal1},2) then
round(({TT.Allocate}*{@Percent}),2)
else ({TT.Allocate}-(round(({TT.Allocate}*{@Percent}),2)))
Percent is the total pay amounts grouped by project divided by employees total pay amount.
In our example the amount to allocate which is different for every employee is 22.00
Proj1 20.00 .33% * 22.00 =$7.26
Proj2 20.00
Proj3 20.00
Total 60.00
So for each project above I would get $7.26 for each project which totals 21.78. Unfortunately the amounts we allocate have to sum exactly to the figure we are using to allocate which in this example is $22.00. I tried using the formula below but it doesn't seem to work and I've tried various rounding combinations:
The {@Sumoffringe2} is the Total pay amount the ({#RTotal1} is the total pay amount at the proj level. I not certain the formula below can deliver what I want. Based on the above example the results I want would be as follows:
Proj1 20.00 .33% * 22.00 =$7.26
Proj2 20.00 .33% * 22.00 =$7.26
Proj3 20.00 .33% * 22.00 =$7.48
Total 60.00
If round({@Sumoffringe2},2) <= round({#RTotal1},2) then
round(({TT.Allocate}*{@Percent}),2)
else ({TT.Allocate}-(round(({TT.Allocate}*{@Percent}),2)))