For the table "Test":
+---------+------+-------+
| Section | Test | Count |
+---------+------+-------+
| A       | T1   |    20 |
| A       | T2   |    10 |
| A       | T3   |    15 |
| A       | T4   |    30 |
| B       | T1   |    10 |
| B       | T2   |    40 |
| B       | T3   |    25 |
| B       | T4   |    30 |
+---------+------+-------+
I want to calculate the percentage of the count for each test group by the section (example: for the first calculation: (20*100)/(20+10+15+30)). The resulting table should be as below.
+---------+------+-------+------------+
| Section | Test | Count | Percentage |
+---------+------+-------+------------+
| A       | T1   |    20 | 26.6       |
| A       | T2   |    10 | 13.3       |
| A       | T3   |    15 | 20         |
| A       | T4   |    30 | 40         |
| B       | T1   |    10 | 9.5        |
| B       | T2   |    40 | 38.1       |
| B       | T3   |    25 | 23.8       |
| B       | T4   |    30 | 28.6       |
+---------+------+-------+------------+
Please let me know of any good solution.
 
    