Thank you again, for getting back to me.
Counterparty and term are another grouping, and not part of the sample data, I should have made that more clear.
The sample data provided is for two (different) groupings, one by finance type and the other by industry.
What you said is correct, I want to calculate the weighted average based on the total of a group.
In the data above the total sum of assets is 3000 and the total of off-balance is 7000, so I want to calculate the each row by the respective total.
1000 / 3000 (sum of assets)
2000 / 3000 (sum of assets)
5000 / 7000 (sum of off-balance)
2000 / 7000 (sum of off-balance)
I should note that the output for the 2 groupings I provided above, don't have to be part of the same output, they can be their own separate tables, so the output of the financetype group can be one output and the output of the industry group can be another.
I hope this makes it more clear.
Thanks again.