Let say I have this very simple table:
Investments
Bank (number, the key of the bank)
TypeOfInvesment (number, can be 1 = deposit o 2 = mutual funds)
Amount (currency)
And the data is:
Bank TypeOfInvesment Amount
1 1 $100.000
2 1 $50.000
2 1 $10.000
3 2 $40.000
3 2 $50.000
4 2 $50.000
I need to create a report like this:
Bank Amount Total % Type %
1 $100.000 33.33% 62.50%
2 $60.000 20.00% 37.25%
3 $90.000 30.00% 64.28%
4 $50.000 16.67% 37.72%
The Total % is the % of the inversion over the total. On the other hand type % is the % of the inversion over the typeofinvesment total.

Investments
Bank (number, the key of the bank)
TypeOfInvesment (number, can be 1 = deposit o 2 = mutual funds)
Amount (currency)
And the data is:
Bank TypeOfInvesment Amount
1 1 $100.000
2 1 $50.000
2 1 $10.000
3 2 $40.000
3 2 $50.000
4 2 $50.000
I need to create a report like this:
Bank Amount Total % Type %
1 $100.000 33.33% 62.50%
2 $60.000 20.00% 37.25%
3 $90.000 30.00% 64.28%
4 $50.000 16.67% 37.72%
The Total % is the % of the inversion over the total. On the other hand type % is the % of the inversion over the typeofinvesment total.
