I have 2 datasets one is the fund dataset and another one is the percentage dataset I have to use both and calculate the value.
Fund Dataset:
| Fund | amount | purchase | return | buy |
| A | 123 | 456 | 489 | 785 |
| B | 456 | 500 | 800 | 400 |
| C | 489 | 564 | 87 | 450 |
| Total | 1068 | 1520 | 1376 | 1635 |
Percentage dataset:
| Fund | amount | purchase | return | Buy |
| ABC | 0.5 | 0.8 | 0.9 | 0.8 |
Now, I have calculated the (Total amount - C - A) * ABC = (1068 - 489 - 123)*0.5 for all the columns
The above formula is used for Amount/Purchase/Return/Buy
| Fund | amount | purchase | return | buy |
| Final | 228 | 400 | 720 | 320 |